LCInterlocking icon indicating copy to clipboard operation
LCInterlocking copied to clipboard

Issues with handling linked clones

Open martonmiklos opened this issue 3 years ago • 0 comments

Hi folks,

Many thanks for this great plugin!

I have a model having padded shapes which has clones. kép

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)

error: kép

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: https://github.com/execuc/LCInterlocking/blob/6efc3eceed70db49bef9658c8a7a09c02a11cdc4/panel/treepanel.py#L239

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

martonmiklos avatar Feb 02 '22 19:02 martonmiklos