Inventor General Discussion

Inventor General Discussion

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

Sheet metal defaults

306 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
Distinguished Mentor
ccarreiras
Posts: 724
Registered: ‎02-04-2010
Message 2 of 6 (294 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,070
Registered: ‎09-03-2008
Message 3 of 6 (282 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: 724
Registered: ‎02-04-2010
Message 4 of 6 (272 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
Contributor
benjoefoe
Posts: 21
Registered: ‎04-15-2013
Message 5 of 6 (256 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,070
Registered: ‎09-03-2008
Message 6 of 6 (241 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

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.