Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

enable or disable a rule as needed

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Miguel.CarvajalS34Q6
237 Views, 1 Reply

enable or disable a rule as needed

I need to enable or disable one or more rules having checkboxes in an inventor form; true or false

 

Labels (4)
1 REPLY 1
Message 2 of 2

Hi @Miguel.CarvajalS34Q6 

 

Create a True/False parameter to use as a checkbox, then create a rule (let's call that Rule2) and use something like this:

 

iLogicVb.Automation.GetRule(ThisDoc.Document, "Rule1").IsActive =  Rule1_Enabled 

 

Rule1_Enabled is my true/false parameter 

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report