12-13-2017
04:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-13-2017
04:19 AM
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?