mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 10:57:49 +00:00
Auto add owner history on IFC2X3 so the user doesn't need to do that manually
This commit is contained in:
@@ -695,6 +695,11 @@ class IfcParser():
|
||||
'suffix_titles': 'SuffixTitles',
|
||||
}
|
||||
results = []
|
||||
|
||||
if self.ifc_export_settings.schema == 'IFC2X3' \
|
||||
and not bpy.context.scene.BIMProperties.people:
|
||||
bpy.ops.bim.add_person()
|
||||
|
||||
for person in bpy.context.scene.BIMProperties.people:
|
||||
attributes = {}
|
||||
for key, value in data_map.items():
|
||||
@@ -718,6 +723,11 @@ class IfcParser():
|
||||
'description': 'Description',
|
||||
}
|
||||
results = []
|
||||
|
||||
if self.ifc_export_settings.schema == 'IFC2X3' \
|
||||
and not bpy.context.scene.BIMProperties.organisations:
|
||||
bpy.ops.bim.add_organisation()
|
||||
|
||||
for organisation in bpy.context.scene.BIMProperties.organisations:
|
||||
attributes = {}
|
||||
for key, value in data_map.items():
|
||||
|
||||
Reference in New Issue
Block a user