Inventor General Discussion

Inventor General Discussion

Reply
Active Contributor
benjoefoe
Posts: 31
Registered: ‎04-15-2013
Message 1 of 6 (324 Views)
Accepted Solution

Sheet metal defaults

324 Views, 5 Replies
11-01-2013 09:44 AM

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 2012

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.

Distinguished Mentor
ccarreiras
Posts: 974
Registered: ‎02-04-2010
Message 2 of 6 (312 Views)

Re: Sheet metal defaults

11-01-2013 10:08 AM 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!

Regards.
CarlosC

Autodesk Inventor 2014 Certified Professional
Autodesk Factory Design Suite Ultimate 2015
Windows 7 64Bit
*Expert Elite*
cwhetten
Posts: 1,090
Registered: ‎09-03-2008
Message 3 of 6 (300 Views)

Re: Sheet metal defaults

11-01-2013 10:34 AM 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.

Distinguished Mentor
ccarreiras
Posts: 974
Registered: ‎02-04-2010
Message 4 of 6 (290 Views)

Re: Sheet metal defaults

11-01-2013 11:10 AM 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!

Regards.
CarlosC

Autodesk Inventor 2014 Certified Professional
Autodesk Factory Design Suite Ultimate 2015
Windows 7 64Bit
Active Contributor
benjoefoe
Posts: 31
Registered: ‎04-15-2013
Message 5 of 6 (274 Views)

Re: Sheet metal defaults

11-01-2013 12:06 PM 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 2012
*Expert Elite*
cwhetten
Posts: 1,090
Registered: ‎09-03-2008
Message 6 of 6 (259 Views)

Re: Sheet metal defaults

11-01-2013 12:22 PM 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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.