mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 18:57:17 +00:00
Add support for adding non-library based classification references for IFC2X3
This commit is contained in:
@@ -45,10 +45,12 @@ class Usecase:
|
|||||||
self.add_to_existing_relationship()
|
self.add_to_existing_relationship()
|
||||||
else:
|
else:
|
||||||
reference = self.file.createIfcClassificationReference(
|
reference = self.file.createIfcClassificationReference(
|
||||||
Identification=self.settings["identification"],
|
Name=self.settings["name"], ReferencedSource=self.settings["classification"]
|
||||||
Name=self.settings["name"],
|
|
||||||
ReferencedSource=self.settings["classification"],
|
|
||||||
)
|
)
|
||||||
|
if self.file.schema == "IFC2X3":
|
||||||
|
reference.ItemReference = self.settings["identification"]
|
||||||
|
else:
|
||||||
|
reference.Identification = self.settings["identification"]
|
||||||
self.add_new_relationship(reference)
|
self.add_new_relationship(reference)
|
||||||
return reference
|
return reference
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user