iLogic Regenerate all Rules With Update Button

iLogic Regenerate all Rules With Update Button

Jose_Merino
Collaborator Collaborator
2,243 Views
3 Replies
Message 1 of 4

iLogic Regenerate all Rules With Update Button

Jose_Merino
Collaborator
Collaborator

I have an assembly, with some rules, involve level of details, so, when I made changes in the master for see all my assembly change accordingly, it change, but I have to click on the button "Regenerate all Rules" to made all the changes, is there a way to avoid this step, an only clicking the update button, all my assembly change

Thank You.

 

kelly.young has edited your subject line for clarity: Rules Update

0 Likes
Accepted solutions (1)
2,244 Views
3 Replies
Replies (3)
Message 2 of 4

Thomas_Savage
Advisor
Advisor

Hello,

 

At the end of all your rules you can place : InventorVb.DocumentUpdate ()

 

Which will update. Place that code at the end of all your rules and see how that works.

 

Hope this helps?

 

If not I can show you another way to do it.

 

Thomas

 

 



Thomas Savage

Design Engineer


0 Likes
Message 3 of 4

Jose_Merino
Collaborator
Collaborator

It works ok, whit the simple rules, But I have one rule that need to turn Off one inlet, or the other, and in that one is when I need to click the "Regenerate All Rules" button, do yo know how can I make it work, just clicking update.

0 Likes
Message 4 of 4

b_sharanraj
Advocate
Advocate
Accepted solution

Hi @Jose_Merino

 

The below Code Re-Generates all the iLogic Codes in Assembly, Sub Assembly & Part Components 🙂

 

Dim controlDef as ControlDefinition = ThisApplication.CommandManager.ControlDefinitions.Item("iLogic.RegenAllRules")
controlDef.Execute2(True)
 

Regards

B.Sharan Raj