iLogic problem

iLogic problem

Anonymous
Not applicable
1,867 Views
22 Replies
Message 1 of 23

iLogic problem

Anonymous
Not applicable

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

0 Likes
Accepted solutions (1)
1,868 Views
22 Replies
Replies (22)
Message 21 of 23

rossano_praderi
Collaborator
Collaborator

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



--------------------------------------
If my post answers your question, please click the "Accept as Solution"
button. This helps everyone find answers more quickly!
---------------
0 Likes
Message 22 of 23

Anonymous
Not applicable

I have created a new thread:

 

http://forums.autodesk.com/t5/inventor-customization/help-with-ilogic-code/td-p/5424846

 

Thank you for reply 🙂

0 Likes
Message 23 of 23

rossano_praderi
Collaborator
Collaborator
What?


Inviato da Samsung Mobile


--------------------------------------
If my post answers your question, please click the "Accept as Solution"
button. This helps everyone find answers more quickly!
---------------
0 Likes