Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with handling linked clones #57

Open
martonmiklos opened this issue Feb 2, 2022 · 0 comments
Open

Issues with handling linked clones #57

martonmiklos opened this issue Feb 2, 2022 · 0 comments

Comments

@martonmiklos
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant