- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I will try to make this as clear as possible. Basically, I want to be able to be able to add the same component multiple times in an assembly using ilogic. When done manually with "place" command, if Inventor recognizes the same part/component being added more than once it adds ":2" at the end of its name, then ":3" and so on.
So here is my issue, I can add parts/components to assemblies, however, whenever I add the same one, because it has the same name as a previously added part/component, then it deletes the initial one in order to place the new one.
How can I tell ilogic that if I have the same part/component already in an assembly to simple add the ":2" or ":3" and so on?
Here is an example of what I do to add a new component:
Dim ComponentA = Components.Add("partA", "partA.ipt", position := pointA, grounded := True, visible := True, appearance := Nothing)
Note : this is all part of an "if" "then" statement so it may happen that "partA" appears again because the excel spreadsheet I use to determine which part to add satisfies that statement.
Thank you in advance for your help
Solved! Go to Solution.