Skip to content

Commit

Permalink
add owner history to property rel
Browse files Browse the repository at this point in the history
  • Loading branch information
Licini committed Jul 22, 2024
1 parent 244f0c1 commit f3e7cd6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/compas_ifc/entities/extensions/IfcObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ def properties(self, psets):
if id(properties) in psetsmap:
pset = psetsmap[id(properties)]
# TODO: Check if relation already exists
self.file._create_entity("IfcRelDefinesByProperties", GlobalId=ifcopenshell.guid.new(), RelatingPropertyDefinition=pset, RelatedObjects=[self.entity])
self.file._create_entity(
"IfcRelDefinesByProperties",
GlobalId=ifcopenshell.guid.new(),
OwnerHistory=self.file.default_owner_history,
RelatingPropertyDefinition=pset,
RelatedObjects=[self.entity],
)

else:
pset = run("pset.add_pset", self.file._file, product=self.entity, name=name)
Expand Down

0 comments on commit f3e7cd6

Please sign in to comment.