FCInfo CG of assemblies

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
edwilliams16
Veteran
Posts: 3180
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: FCInfo CG of assemblies

Post by edwilliams16 »

Screen Shot 2021-07-11 at 7.27.23 AM.png
Screen Shot 2021-07-11 at 7.27.23 AM.png (40.84 KiB) Viewed 1318 times
Here it is in action on the enclosed:
Attachments
testFCInfo.FCStd
(41.46 KiB) Downloaded 36 times
mario52
Veteran
Posts: 4692
Joined: Wed May 16, 2012 2:13 pm

Re: FCInfo CG of assemblies

Post by mario52 »

Aloha edwilliams16

yes i accept with joy your upgrade

thanks

now is it possible to correct freecad also (and maybe adding "Create volume")

BoundBoxPart00.gif
BoundBoxPart00.gif (257.14 KiB) Viewed 1204 times
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.
edwilliams16
Veteran
Posts: 3180
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: FCInfo CG of assemblies

Post by edwilliams16 »

mario52 wrote: Sun Jul 18, 2021 11:21 am Aloha edwilliams16

yes i accept with joy your upgrade

thanks

now is it possible to correct freecad also (and maybe adding "Create volume")
mario
Any idea where the code is that displays the Bounding Box? It clearly is ignoring all the container placements.

I'll leave it to you to update the Macro in the wiki.

What about FCInfo? I had a fix above for the center of mass calculations.
mario52
Veteran
Posts: 4692
Joined: Wed May 16, 2012 2:13 pm

Re: FCInfo CG of assemblies

Post by mario52 »

Alhoa
edwilliams16 wrote: Sun Jul 18, 2021 6:57 pm Any idea where the code is that displays the Bounding Box?
maybe "\Mod\Draft\draftutils" in gui_utils.py

def get_bbox(obj, debug=False):

edwilliams16 wrote: Sun Jul 18, 2021 6:57 pm I'll leave it to you to update the Macro in the wiki.
done Macro_BoundingBox_Tracing merci

edwilliams16 wrote: Sun Jul 18, 2021 6:57 pm What about FCInfo? I had a fix above for the center of mass calculations.
not yet

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.
mario52
Veteran
Posts: 4692
Joined: Wed May 16, 2012 2:13 pm

Re: FCInfo CG of assemblies

Post by mario52 »

Alhoa edwilliams16
edwilliams16 wrote:ping
edwilliams16 wrote: Sun Jul 18, 2021 6:57 pm What about FCInfo? I had a fix above for the center of mass calculations.
done Ver_1-24

your report please

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