Programmicaly pushing iLogic into Legacy Inventor Documents

Programmicaly pushing iLogic into Legacy Inventor Documents

Anonymous
Not applicable
529 Views
2 Replies
Message 1 of 3

Programmicaly pushing iLogic into Legacy Inventor Documents

Anonymous
Not applicable

We are currently using Inventor 2011.

 

Does the API allow programmicaly pushing iLogic code into Legacy Inventor Documents?

 

We have hundreds of thousands of Legacy Drawing documents.  We would like to use iLogic in them.

 

Any way this is possible without having to manually cut and paste for every file?

0 Likes
530 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Found a Work around.

 

Using VBA I programmically

1) Load a new drawing based on the new drawing template that contains the iLogic Code.

2) Open the old drawing and loop through the old sheets

    Use the Sheet.CopyTo() method to copy the sheets to the new drawing file.

3) Delete the old sheet format and title block then add the new border and titleblock style.

4) Delete any parts lists and recreate them using the new partslist style.

5) After the loop finishes i delete the empty sheet 1 of the new drawing 

6) get the old drawing name

7) Close the old drawing

8) Save the new drawing with the old name.  (Overwriting the old drawing)

 

Drawing Format and styles updated and the iLogic is now embedded as desired.

 

 

 

0 Likes
Message 3 of 3

Curtis_W
Consultant
Consultant

Hi Gruff,

 

This link might provide some help on this matter too (if not for your needs, maybe for others in the future):

http://inventortrenches.blogspot.com/2011/08/built-for-speed-running-ilogic-rules.html

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

EESignature

0 Likes