ILOGIC replace sheetmetal style

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We have recently upgraded to 2011. The sheet metal styles have changed so much I am updating styles from old style to new style pretty regularly. Our old parts never really had a style name so the most common style name is “default”. Each part type had its own template - 16ga to 7ga in mild steel, aluminum etc... The new style library has all this information.
Could these steps be done to all parts in an assembly with ilogic code?
- Switch from default to new style
- Delete old flat pattern & create new flat pattern
- Purge old styles
I can change one part at a time. It would be much faster if I could put 20 or 30 parts with the same sheet metal style & run a rulle to change them all at once.
I made a couple of attempts from older post in API but without the specific task in the provided snippets of I LOGIC code I do not have the knowledge.
SheetMetal.SetActiveStyle("styleName")
Please help!
Thanks in advance