Page 1 of 1

New or exsisting macro

Posted: Fri Sep 20, 2024 1:33 pm
by Bryan O
There are a lot of pet peeves that my coworkers do that annoy me.
Here is a short list LOL!:
• Saving a model zoomed in so when you open it, you’re looking at the side of a surface.
• Leaving unused features in part trees.
• Display states. We don’t use them but many leave display states linked to configurations and inadvertently make many copies of unused states.

I would like a macro that saves out a “clean” part/assembly.
I would like this macro to:
• Unlink display states
• Set the display state to <default>_Display State 1
• Delete all but <default>_Display State 1
• Delete all unused features/parts( and their children)
• Hide all sketches
• Return the display area to a default ISO view (full screen)
• Save the file (with option to close)

anyone have something or would be willing to write one?
I tried to record a macro to do this, but it stalls at the close. I looked at it and it looked like it was trying to rename the part to whatever the part I was recording that I used while I was recording it.