- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Try this code, this will insert the component and name it as if it were inserted manually.
Dim ComponentA = Components.Add("", "partA.ipt", position := pointA, grounded := True, visible := True, appearance := Nothing)
Andrew Inβt Veld
Designer / CAD Administrator![]()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I can't believe it was so simple!
Thank you so much and have a great day!