Auto add owner history on IFC2X3 so the user doesn't need to do that manually

This commit is contained in:
Dion Moult
2020-10-24 18:20:42 +11:00
parent 4013a7e8b7
commit ee6e96c226
@@ -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():