Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic problem

22 REPLIES 22
SOLVED
Reply
Message 1 of 23
stannm
1216 Views, 22 Replies

iLogic problem

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

22 REPLIES 22
Message 21 of 23
rossano_praderi
in reply to: itjelta

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!
---------------
Message 22 of 23
itjelta
in reply to: 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 🙂

Message 23 of 23
rossano_praderi
in reply to: stannm

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!
---------------

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

Post to forums  

Autodesk Design & Make Report