I'm looking for a code or a way for my sheet metal defaults to prompt or "pop up" everytime I start a new sheet metal template. Thanks!
Solved! Go to Solution.
Hi and welcome to the forum!
This isn't too hard to do, actually. You can edit your current sheet metal template, add an iLogic rule with the following line of code:
Then, go to the manage tab on the ribbon, and find the Event Triggers command on the iLogic panel. Set the New Document trigger to fire the new rule.
This way, each time you start a new document from this template, the rule will fire and launch the sheet metal styles command where you choose your defaults.
I have attached an example (version 2014).
Please click "Accept as Solution" if this response answers your question.
Ok, it saves one click.
Is it worth put some programing lines in a file, that makes it more "heavy" and complex, to save one click?
You have a good point "it saves one click". My reason is that I use a program called pronest to layout all my sheet metal parts with multiple thicknesses and materials onto sheets of sheet metal for plasma cutting. Pronest requires that my sheet metal use "face" extruding only and automaticl selects the thickness and material from what was entered in the "sheet metal defaults" This prompt will help make my sheet metal parts more consistant in using the defaults rather than someone using the extrude comand for a thickness or saving a file with the pre-selected material.
Carlos raises a good point. Once the sheet metal part is created, the rule doesn't do any good, and it is just useless information in your part files.
To help alleviate this, you could create the rule as an external rule. You would just have to change your template's event triggers to fire the external rule, then you could delete the rule inside the template. It would still do what you want, but the code wouldn't be left behind in each part file.