Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
in reply to: bradeneuropeArthur

I run this rule in a sequence along with other rules. What I was finding is that it worked just fine when ran on its own. When run in sequence with other it would generate the error.

 

I got down to the bottom of which other rule was causing this one to fail. The rule that runs just before this one contained this:

 

AddVbFile "RunAllRulesUnderDocument.txt"

 

Dim ruleRunner = New RunAllRulesUnderDocument(iLogicVb, Component, "Base Data.ipt")
Dim doc = ThisDoc.Document ' This is required (indirectly) by the external rule so that it can use Inventor objects.

ruleRunner.RunAllRules("Top")

 

After commenting this out I don't get the error anymore when run in sequence. Any idea why this could cause that error?