Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

iLogic Rule to preselect sheet metal style

bbrumfield
Advocate

iLogic Rule to preselect sheet metal style

bbrumfield
Advocate
Advocate

Any ideas on how to use/create an iLogic Rule to preselect sheet metal style when creating a new sheet metal part (material & thickness) from sheet metal rule

0 Likes
Reply
Accepted solutions (1)
361 Views
3 Replies
Replies (3)

dalton98
Collaborator
Collaborator

Just go into the sheet metal template and change it there.

0 Likes

bradeneuropeArthur
Mentor
Mentor
Accepted solution
'' Dim a As Inventor.ControlDefinition = ThisApplication.CommandManager.ControlDefinitions.Item("SheetMetalSetBodyRuleStyleCtxCmd")
Dim a As Inventor.ControlDefinition = ThisApplication.CommandManager.ControlDefinitions.Item("SheetMetalStylesCmd")

a.Execute

you mean on create new from template you need to see this box:

bradeneuropeArthur_0-1650058786954.png

Let the above rule on new:

bradeneuropeArthur_0-1650059837097.png

 

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

0 Likes

bbrumfield
Advocate
Advocate

Hi bradeneuropeArthur,

 

That was exactly what I was looking for

 

I was able to make this work:

Dim a As Inventor.ControlDefinition = ThisApplication.CommandManager.ControlDefinitions.Item("SheetMetalStylesCmd")

a.Execute