FCInfo Macro

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
mario52
Veteran
Posts: 4692
Joined: Wed May 16, 2012 2:13 pm

Re: FCInfo Macro

Post by mario52 »

hi
done same link, latest version FCInfo.FCMacro

if you want modify the value by default, modify now the line 193
example default (1.00)

Code: Select all

global densite       ; densite       = 1.00 # (steel = 7.5 kg by dm3)
modify to (1.20)

Code: Select all

global densite       ; densite       = 1.20 # (steel = 7.5 kg by dm3)
other think ?

report

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
freecad-heini-1
Veteran
Posts: 7790
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: FCInfo Macro

Post by freecad-heini-1 »

Hi Mario,
thank you so much, now everything is fine:
fcinfo_density.png
fcinfo_density.png (5.97 KiB) Viewed 2698 times
Best regards
Wilfried
lukassturm
Posts: 5
Joined: Fri Mar 02, 2018 3:18 pm
Location: Darmstadt/Germany

Re: FCInfo Macro

Post by lukassturm »

Hello community, this is my first post.

I just installed the FCInfo Macro. Everything works fine. Thanks for your effort!

BUT I actually installed it because I was hoping it would also provide me with the surface property second moment of area (https://en.wikipedia.org/wiki/Second_moment_of_area).

Is there an option to compute this property with the macro?

I need to compute the second moments of areas of some more complex geometries and I was hoping FreeCAD (or one of its workbenches/macros) could do the job.

If this macro cannot, which other does? So many questions.... ;) Hope somebody can help me out here.
User avatar
r.tec
Posts: 533
Joined: Thu Oct 23, 2014 4:06 pm
Location: Bad Münstereifel, NRW, Germany
Contact:

Re: FCInfo Macro

Post by r.tec »

Hello Lukas,
I would recommend you to look through this Fred: https://forum.freecadweb.org/viewtopic. ... ft#p187133
lukassturm
Posts: 5
Joined: Fri Mar 02, 2018 3:18 pm
Location: Darmstadt/Germany

Re: FCInfo Macro

Post by lukassturm »

Hello r.tec,

thanks for your reply. But this thread did not help me.

I came closer to the solution but I am not quite there yet.

If anyone else is looking for a solution on this, this thread goes in the right direction:
https://forum.freecadweb.org/viewtopic. ... 07#p220507

Cheers,
lukas
chrisb
Veteran
Posts: 54191
Joined: Tue Mar 17, 2015 9:14 am

Re: FCInfo Macro

Post by chrisb »

Moved topic to Help forum (before Normand sees it).
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Vincent B
Veteran
Posts: 4733
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: FCInfo Macro

Post by Vincent B »

Hi,
* Why my Fcinfo is looking so ugly with my computer? It's quite unable to read datas :? :?
* Why Fcinfo is not included with Freecad's package :?:

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.13959 (Git)
Build type: Release
Branch: master
Hash: 2f18182b6dff87f8857787c854e39ca4d441f993
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: French/France (fr_FR)
Attachments
Capture.JPG
Capture.JPG (131.92 KiB) Viewed 2456 times
User avatar
Chris_G
Veteran
Posts: 2598
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: FCInfo Macro

Post by Chris_G »

GlouGlou wrote: Sat Jun 16, 2018 3:25 pm Hi,
* Why my Fcinfo is looking so ugly with my computer? It's quite unable to read datas :? :?
Hi GlouGlou (et glou et glou et glou ... :D ),
Would you have a large HiDPI monitor ?
In that case, I think Windows applies a scaling on the fonts.
User avatar
Vincent B
Veteran
Posts: 4733
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: FCInfo Macro

Post by Vincent B »

Chris_G wrote: Sat Jun 16, 2018 4:02 pm Would you have a large HiDPI monitor ?
I think so, Ive already saw that kind of bad display :roll:
mario52
Veteran
Posts: 4692
Joined: Wed May 16, 2012 2:13 pm

Re: FCInfo Macro

Post by mario52 »

Hi

just cause HighDP, here the solution by UR_
UR_ wrote: Sat Jan 06, 2018 4:22 pm
fourchette wrote: Sat Jan 06, 2018 12:46 pm on my macbook at home running on Windows 10 64bits, the FCInfo view is "ugly"
I'm using a HighDPI display too and mario's macros are unfortunately not HDPI-aware. :(
But there is a workaround on windows:

use windows explorer and go to directory, where FreeCAD.exe can be found
right-click FreeCAD.exe and select "Properties" from context menu
adjust accordindly to screenshot


start FreeCAD
Image

see the post how can i get the length of a closed sketch ?

How to adapt my macros they are all done the same way with Qt?

PS: now with version 0.17 of FreeCAD my macros do not recognize the placement of the body the macro gives the normal placement and not the GlobalPlacement ()

I will adapt later (when the shock has been absorbed sniff !!)
valid for all my macros using Placement


Comment adapter mes macros elles sont toutes faites de la même façon avec Qt ?

PS: maintenant avec la version 0.17 de FreeCAD mes macros ne reconnaissent pas le placement du body la macro donne le placement normal et non le GlobalPlacement()

je vais adapter plus tard (quand le choc aura été absorbé snif !!)
valable pour toutes mes macros utilisant le Placement


mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
Post Reply