-
Notifications
You must be signed in to change notification settings - Fork 36
Description
Hi folks,
Many thanks for this great plugin!
I have a model having padded shapes which has clones.

If I try to add the 'pads' to an Interlocking operation I cannot add all of them all because their names are identical and the PartsList object indexes the added objects by name:
https://github.com/execuc/LCInterlocking/blob/master/panel/partmat.py#L100
If I add the bodies with "Add parts"/"Add same parts" then they are added to the list, however if I click on one of the faces and try to add them with "Add faces"/"Add same faces" I got
Part of face Face1 is not configured (Pad001)
This error is thrown because when I try to add a face to the listview the workbench will check if the object to which the face belongs is added to the list:
LCInterlocking/panel/treepanel.py
Line 239 in 6efc3ec
| if not self.partsList.exist(face['freecad_object'].Name): |
However in my case the face is belongs to the result of the 'pad' operation.
My suggestions would be the following:
Index the added "objects" by a model path not by name - this would allow adding clones
