How to add a part from content center

How to add a part from content center

Anonymous
Not applicable
275 Views
1 Reply
Message 1 of 2

How to add a part from content center

Anonymous
Not applicable

I am trying to write a script that will automatically place part from the content center in an assembly. I can do this manually with the following steps:

1 - Choose a part in the menu under Assemble > Place > Place from Content Center.

2 - Specify necessary properties (for example, length for pipes).

3 - Save the new part in an .ipt file.

4 - Place copies of the new part in the drawing.

 

I can do step one from the API using

 

 

app = (Inventor.Application) Marshal.GetActiveObject("Inventor.Application");
app.ActiveDocument.ComponentDefinition.Occurrences.Add(file_path, transform);

 

 

But how can I do the first three steps using the API?

276 Views
1 Reply
Reply (1)
Message 2 of 2

Darkforce_the_ilogic_guy
Advisor
Advisor

I believe that point 3 and 4 is one .. sind 4 kinden of happen before 3 at less form an user standpoint. what you can do i believe is to make an marco that will select part type ...so you have spare some step ...with the type that you uses the most .. think i have an old quest about the same stuff.

0 Likes