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!
torchic2006
Posts: 1
Joined: Sun Nov 05, 2017 4:19 pm

Re: FCInfo Macro

Post by torchic2006 »

I am having some trouble using the FCInfo macro. I installed the macro, but when I try to run the macro nothing happens. I select the part, go to macros, and execute the FCInfo macro, but nothing happens. Any suggestions?
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: FCInfo Macro

Post by jmaustpc »

torchic2006 wrote: Sun Nov 05, 2017 4:22 pm I am having some trouble using the FCInfo macro. I installed the macro, but when I try to run the macro nothing happens. I select the part, go to macros, and execute the FCInfo macro, but nothing happens. Any suggestions?
Hi and welcome to the FreeCAD forums.

Please post your version data, how to do this is explained in the forum rules link above the Help Forum.
User avatar
makkemal
Posts: 395
Joined: Wed Apr 29, 2015 12:41 pm
Location: South Africa
Contact:

Re: FCInfo Macro

Post by makkemal »

The macro also does nothing when I run it. It used to work about 6 months ago
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12595 (Git)
Build type: Release
Branch: master
Hash: 8c7bb0cd551cf11551ff71d716a16211c6d5e13d
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/SouthAfrica (en_ZA)
mario52
Veteran
Posts: 4701
Joined: Wed May 16, 2012 2:13 pm

Re: FCInfo Macro

Post by mario52 »

hi

no problem with (installed now)

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12595 (Git)
Build type: Release
Branch: master
Hash: 8c7bb0cd551cf11551ff71d716a16211c6d5e13d
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0

do you have more information, screenshot ...
you are the second with torchic2006 (sorry torchic2006 for the late report)

EDIT: 13/12/2017 21:48 Paris
latest version FCInfo.FCMacro

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: 7791
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: FCInfo Macro

Post by freecad-heini-1 »

makkemal wrote: Thu Nov 16, 2017 12:11 pm The macro also does nothing when I run it. It used to work about 6 months ago
Same problem here with:

Code: Select all

OS: Ubuntu 16.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12847 (Git)
Build type: None
Branch: master
Hash: 4034851a5d2ed5c93a8ebedbf0ef40dab8700d94
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: German/Germany (de_DE)
I copied the code from the macro into the empty macro and now it's o.k. for me.
I guess there is something wrong with the addon-manager.
mario52
Veteran
Posts: 4701
Joined: Wed May 16, 2012 2:13 pm

Re: FCInfo Macro

Post by mario52 »

hi
freecad-heini-1 wrote: Mon Dec 18, 2017 11:27 am I copied the code from the macro into the empty macro and now it's o.k. for me.
good news

how do you find the new presentation ?
if you encounter differences in operation please report them

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: 7791
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: FCInfo Macro

Post by freecad-heini-1 »

mario52 wrote: Mon Dec 18, 2017 12:45 pm hi
freecad-heini-1 wrote: Mon Dec 18, 2017 11:27 am I copied the code from the macro into the empty macro and now it's o.k. for me.
good news

how do you find the new presentation ?
if you encounter differences in operation please report them

mario
Hi Mario,
thank you so much. I like the new look and feel very much.
Coordinate click mouse is nice.

Maybe there is one small thing to improve. I need fcinfo mostly for to calculate the weight of plastic parts.
Maybe you can add the word density, so that it will be clear that the user can type in the value in this field:
fcinfo_weight.png
fcinfo_weight.png (11.68 KiB) Viewed 1878 times
Best regards
Wilfried
mario52
Veteran
Posts: 4701
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 the line 207
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)
ps: for the moment the macro stay always in memory even if you quit with the Exit button (i search solution)

other think ?

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: 7791
Joined: Tue Jan 07, 2014 11:10 am
Contact:

Re: FCInfo Macro

Post by freecad-heini-1 »

Sorry Mario, I guess it's a missunderstanding because of my lala English.
What I mean, is that the field is named "Density" like the other fields for example "Surface of the form".
That user can realize, that this field is to type in a value for the density.
chrisb
Veteran
Posts: 54302
Joined: Tue Mar 17, 2015 9:14 am

Re: FCInfo Macro

Post by chrisb »

I think freecad-heini-1 wants to have a label on the GUI for the field.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply