Community
Hi Everyone,
I have a question. I am setting up template .ipts and .idw for my company, and i run Adept to save and store my files. Now i have a code to automatically make a .idw after i save an .ipt. but then after every save (adept saves the .ipt alot of times) it will ask to make a drawing for the .ipt. well i was wondering if there is a code to put in a rule to disable the event triggers, and place that rule on the trigger after close document. so that the next time i open the document no event triggers will work.
You may suppress / unsuppress any iLogic rule. Here is a sample:
Dim MyRuleName As String = "MagicRule" Dim auto As IiLogicAutomation = iLogicVb.Automation Dim oDoc as Inventor.Document = ThisDoc.Document Dim rule As iLogicRule = auto.GetRule( oDoc, MyRuleName) 'this line suppresses my rule rule.IsActive = False
Suppressed rule cannot be invoked by events.
Cheers,