Run external rule on all open file

Run external rule on all open file

Anonymous
Not applicable
403 Views
2 Replies
Message 1 of 3

Run external rule on all open file

Anonymous
Not applicable

Hello, I am having trouble with a rule that would fire off an external rule to all all open files.  It appears that it currently steps though each file visually, but fails to activate each file as it steps through each open file. 

 

 

Dim oDoc As Inventor.Document
For Each oDoc In ThisApplication.Documents.VisibleDocuments


oDoc.Activate()
iLogicVb.RunExternalRule("IPROPERTIES")


InventorVb.DocumentUpdate()
oDoc.Close

Next oDoc

 

 

0 Likes
404 Views
2 Replies
Replies (2)
Message 2 of 3

AlexFielder
Advisor
Advisor
0 Likes
Message 3 of 3

Anonymous
Not applicable

Thank you, I am not familiar with  functions;   how would I incorporate that into my code?  I am running inventor 2014 if that makes a difference. 

0 Likes