Message 1 of 2
How to add a part from content center

Not applicable
05-12-2020
02:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?