Determining Content Center Family and Nodes from a Content Center Part

Determining Content Center Family and Nodes from a Content Center Part

danmorick
Enthusiast Enthusiast
300 Views
1 Reply
Message 1 of 2

Determining Content Center Family and Nodes from a Content Center Part

danmorick
Enthusiast
Enthusiast

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.

0 Likes
301 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

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.

 

 

 

0 Likes