We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9a4ae6 commit 27729edCopy full SHA for 27729ed
src/compas/datastructures/assembly/assembly.py
@@ -86,6 +86,8 @@ def add_part(self, part, key=None, **kwargs):
86
The identifier of the part in the current assembly graph.
87
88
"""
89
+ if part.guid in self._parts:
90
+ raise AssemblyError('Part already added to the assembly')
91
key = self.graph.add_node(key=key, part=part, **kwargs)
92
part.key = key
93
self._parts[part.guid] = part
0 commit comments