Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sheet metal defaults

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
benjoefoe
799 Views, 5 Replies

Sheet metal defaults

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! 

Thanks, Ben

AutoDesk Inventor 2020 Certified
5 REPLIES 5
Message 2 of 6
CCarreiras
in reply to: benjoefoe

Hi!

 

Create templates for every defaults, and open the right one.

 

Did you find this reply helpful ? If so, use the Mark Solutions!Accept as Solution or Give Kudos!Kudos - Thank you!

CCarreiras

EESignature

Message 3 of 6
cwhetten
in reply to: benjoefoe

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:

 

ThisApplication.CommandManager.ControlDefinitions.Item("SheetMetalStylesCmd").Execute

 

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).

 

Cameron Whetten
Inventor 2014

Please click "Accept as Solution" if this response answers your question.

Message 4 of 6
CCarreiras
in reply to: cwhetten

Hi!

 

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?

 

Did you find this reply helpful ? If so, use the Mark Solutions!Accept as Solution or Give Kudos!Kudos - Thank you!

CCarreiras

EESignature

Message 5 of 6
benjoefoe
in reply to: CCarreiras

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. 

Thanks, Ben

AutoDesk Inventor 2020 Certified
Message 6 of 6
cwhetten
in reply to: benjoefoe

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.

 

Cameron Whetten
Inventor 2014

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report