Implement metric constraints in the ifcopenshell.api

This commit is contained in:
bosonprojets
2021-08-16 01:35:14 +01:00
parent 745411ee47
commit b4256c504f
5 changed files with 90 additions and 0 deletions
@@ -16,6 +16,7 @@ class Usecase:
related_objects = set(rel.RelatedObjects) if rel.RelatedObjects else set()
related_objects.add(self.settings["product"])
rel.RelatedObjects = list(related_objects)
return rel
def get_constraint_rel(self):
for rel in self.file.by_type("IfcRelAssociatesConstraint"):