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: 

Determining Content Center Family and Nodes from a Content Center Part

1 REPLY 1
Reply
Message 1 of 2
danmorick
225 Views, 1 Reply

Determining Content Center Family and Nodes from a Content Center Part

I am interested in using the ilogic interface to find out the Content Center path that was used to create a Content Center part.  For example, I have a steel tube, 2"x2"x1/4", 6" long that came from Content Center.  How do I find out (using code) the path that led to it ("Structural Shapes: Square/Rectangular Tubes: ..." etc.?  I would think that this information is held somewhere within that part, since I can perform "Change Size" on it in an assembly and it brings up the correct Content Center destination.

 

Also, when placing a structural shape using code, how does one indicate how long that member should be?

 

Any guidance or suggestions related to this would be appreciated.

1 REPLY 1
Message 2 of 2
Milgaco
in reply to: danmorick

Dim InvDoc As Inventor.ApprenticeServerDocument

Dim InvApr As New Inventor.ApprenticeServerComponent

Dim FPath As String

 

InvDoc = InvApr.Open(FullPathtoFile)

InvDoc.ReferencedDocuments.Item(i).FullFileName     'To find the path of children of an assembly

FPath = InvDoc.FullFileName            'For a single component

 

 

This is based on .net and using apprentice so that Inventor does not need to be opened.

 

I believe you can do the same with

Dim InvDoc As Inventor.Document

Dim InvApr As New Inventor.InventorServer

but will open Inventor

 

ilogic looks like it will be similar, but I have never used it.

 

 

 

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

Post to forums  

Autodesk Design & Make Report