Skip to content

Issues with handling linked clones #57

@martonmiklos

Description

@martonmiklos

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions