Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic Help

0 REPLIES 0
Reply
Message 1 of 1
shmartin89
159 Views, 0 Replies

iLogic Help

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

Tags (2)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report