I have code which opens all documents referenced in a drawings file and then runs a run which exists in the files.
To do this the code opens all the referenced files, runs the code & then saves and closes the files but I am wondering if I can alter the iLogic so that the files dont open or appear on the screen?
The next parts is i would like the rule to check if a rule exists in the referenced parts & if not then add it and run.
This is what i have so far:
Dim oDoc As Document
oDoc = ThisDoc.Document
Dim docFile As Document
For Each docFile In oDoc.AllReferencedDocuments
ThisApplication.Documents.Open(docFile.FullFileName, True)
auto = iLogicVb.Automation
auto.RunRule(docFile, "Remove Precision and mm Rule")
docFile.Save
docFile.Close
iLogicVb.UpdateWhenDone = True