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 100a579 commit d5003d5Copy full SHA for d5003d5
csfunctions/objects/part.py
@@ -247,3 +247,12 @@ class BOMItem(BaseObject):
247
mengeneinheit: str | None = Field(None, description="Unit of Measure")
248
teilenummer: str = Field(..., description="part number")
249
t_index: str = Field(..., description="part index")
250
+
251
+ part: Part | None = Field(None, description="Part of the BOM item", exclude=True)
252
253
+ def link_objects(self, data: "EventData"):
254
+ parts = get_items_of_type(data, Part)
255
+ for part in parts:
256
+ if part.teilenummer == self.teilenummer and part.t_index == self.t_index:
257
+ self.part = part
258
+ break
0 commit comments