Thanks to all who've discussed this topic so far. It helped me get a version of this working for project i'm working on. However, i've run into an oddity i'm wondering if someone can explain.
I'm using the basic rule structure shown above and it works fine on it's own. I"m parsing a BOM Structure and running it on part objects. The script adds a rule to the files Before Save option. This is the code that is calling it:
Dim myDoc As Document = ThisApplication.Documents.Open(oDoc1.FullFilename, True)
iLogicVb.Automation.RunExternalRule(myDoc, "RBlankTriggerSet")
myDoc.Save2(False)
myDoc.Close(True)
The problem is, if that first Open line is set to False (so it does not show the system pulling up each part), the rule (which is inserted in Before Save, does not execute. It gets added and it's saved as part of the file, but it does not run. If it is set to True, it does execute. This isn't a deal breaker, per se, but it would be nice to not subject the user to that as it takes a good deal longer to run that way.
Is there a way to get this to run silently? Or is noisily the only option?