06-30-2022
01:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
06-30-2022
01:08 AM
I logic to change sheet metal rule for selected component
HI,
I am looking for the code that is related to the sheet metal rule.
Basically when the rules is run the msg box like the below will come up.
06-30-2022
07:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
06-30-2022
07:56 AM
What you can do is make a new user parameter in the default Sheet metal template. In the user parameters you add a multi value parameter with all the styles that you are using. It is importent that all the styles in the multi value parameter the text is equal to the Sheet Metal styles.
After that you can add this text in a iLogic rule:
Material1 = InputListBox("Prompt", MultiValue.List("Material"), "Test", Title := "Title", ListName := "List") SheetMetal.SetActiveStyle(Material1) InventorVb.UpdateWhenDone = True
06-30-2022
07:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
06-30-2022
07:28 PM
Hi
Thank you for the reply.
That should work when we create the new sheet metal.
What am looking for is the i logic for old part sheet metal.
So I just want to change the sheet metal rule on the existing part.
Rgds
Rgd