iLogic Rule to preselect sheet metal style

iLogic Rule to preselect sheet metal style

bbrumfield
Advocate Advocate
426 Views
3 Replies
Message 1 of 4

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
Accepted solutions (1)
427 Views
3 Replies
Replies (3)
Message 2 of 4

dalton98
Collaborator
Collaborator

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

0 Likes
Message 3 of 4

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 & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


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:
My 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 !


 


EESignature

0 Likes
Message 4 of 4

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