Hi,
I'm trying to create an iLogic rule which opens every drawing of every part in a assembly and then launches my rule to create a PDF and then closes the document one by one. I thought i'd be as simple as this but apperently I'm wrong.
With this code it only opens the drawing of the assembly and then closes it and then does that again.
Dim oAsmDoc As AssemblyDocument oAsmDoc = ThisApplication.ActiveDocument Dim oRefDocs As DocumentsEnumerator oRefDocs = oAsmDoc.AllReferencedDocuments Dim oRefDoc As Document For Each oRefDoc In oRefDocs iLogicVb.RunExternalRule("Overige - open drawing") iLogicVb.RunExternalRule("Export - PDF in assembly") ThisApplication.ActiveDocument.Close(True) Next
Can anyone help me?
Thanks!
Stan
Solved! Go to Solution.
Solved by rossano_praderi. Go to Solution.
Hi Itjelta, yes it is.
Can you post your code?
I think is better if you open a new thread.
And if you don't like to publish your code, you can send me a private message with your full/partial code (of course, if you trust me).
Bregs
Rossano Praderi
I have created a new thread:
http://forums.autodesk.com/t5/inventor-customization/help-with-ilogic-code/td-p/5424846
Thank you for reply 🙂