Place iLogic Component API

Place iLogic Component API

duke
Enthusiast Enthusiast
1,014 Views
3 Replies
Message 1 of 4

Place iLogic Component API

duke
Enthusiast
Enthusiast

I am working to automate a design and am attempting to replicate some of the functionality of the "place iLogic component" command. Specifically, I would like to be able to give the code a file name, have it open the file, run the 'save as' function on the file and all its referenced documents, and open the file in the assembly.

 

How would be the best way to go about this? I have found that I can accomplish the task by writing a 'save as' rule into each of the lower assemblies and to call it after adding the component, but I have yet to be able to run the program from the top assembly.

0 Likes
Accepted solutions (1)
1,015 Views
3 Replies
Replies (3)
Message 2 of 4

chandra.shekar.g
Autodesk Support
Autodesk Support

@duke,

 

Correct me if I am wrong about requirement, an iLogic rule in top assembly opens all sub assemblies and parts and perform "Save as" to all referenced documents. Is this correct?

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 3 of 4

duke
Enthusiast
Enthusiast
Accepted solution

Yes, that was indeed my intention. I have since succeeded in solving the problem and writing the necessary code. I did it by adding the component with the Component.Add function, then iterated through each of the referenced documents and saved them each individually.

0 Likes
Message 4 of 4

Andrew_Burnett
Enthusiast
Enthusiast

I am having a similar situation.  Could you possible post snippets of your coding so that I can see how you solved your issue?

 

Thank you