Message 1 of 23

Not applicable
11-05-2014
02:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.