mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-01 20:49:44 +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',
|
'suffix_titles': 'SuffixTitles',
|
||||||
}
|
}
|
||||||
results = []
|
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:
|
for person in bpy.context.scene.BIMProperties.people:
|
||||||
attributes = {}
|
attributes = {}
|
||||||
for key, value in data_map.items():
|
for key, value in data_map.items():
|
||||||
@@ -718,6 +723,11 @@ class IfcParser():
|
|||||||
'description': 'Description',
|
'description': 'Description',
|
||||||
}
|
}
|
||||||
results = []
|
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:
|
for organisation in bpy.context.scene.BIMProperties.organisations:
|
||||||
attributes = {}
|
attributes = {}
|
||||||
for key, value in data_map.items():
|
for key, value in data_map.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user