Page 1 of 1

Some (hopefully) useful macros

Posted: Sun Apr 14, 2024 8:35 am
by laukejas
Hi,

Just wanted to share several macros I use in my day-to-day, most of them written myself.

Modify External References - small dialog to Lock / Unlock / Break all references for all components in the assembly. Useful with Master models.

Rebuild Assembly Parts - for when Force Rebuild doesn't cut it. This macro opens each part individually, shakes it down, saves and closes it. Should get these stuck references to update.

Set Image Quality For All Parts - quickly change imaqe quality for all components in an assembly. Useful when you have tons of components that have high quality setting inherited from template or something.

Toggle Tangent Edge Display - quickly toggle tangent edge view without having to go into Options.

Edit Component - we all know how annoying it is that you can't assign Edit Component / Part command to a keyboard shortcut or mouse gesture. But you can with this macro. Select face / feature of any component in the assembly, and it will enter Edit Component mode. Run it again without anything selected, and it will exit Edit Component mode.

Draw CoV - creates a sketch with a point that marks the center of volume (not mass) of the assembly components. Useful when parts have different materials and densities and CoM doesn't match CoV.

Each body to STL - exports each body from a multibody part to an STL. There are some naming rules in there (I use this in conjunction with my Revision Control App (viewtopic.php?t=1823), so there are rules to add revision name to the file. You might want to adjust naming for your use case.


Been a while since I used some of them, so if something doesn't work, let me know.

Re: Some (hopefully) useful macros

Posted: Sun Apr 14, 2024 9:17 am
by gupta9665
Thank you for sharing!!

Re: Some (hopefully) useful macros

Posted: Mon Apr 15, 2024 7:51 am
by AlexLachance
If you'd like to add them there or perhaps use some there too, this thread has a collection of a bunch of macros:

viewtopic.php?t=74