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

iLogic Rule to preselect sheet metal style

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

dalton98
in reply to: bbrumfield

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

'' 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 !

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