mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Auto add to drawings IFCs at export time for usability improvement
This commit is contained in:
@@ -73,6 +73,9 @@ class ExportIFC(bpy.types.Operator):
|
||||
ifc_export_settings.logger.info('Starting export')
|
||||
ifc_exporter.export(context.selected_objects)
|
||||
ifc_export_settings.logger.info('Export finished in {:.2f} seconds'.format(time.time() - start))
|
||||
if not bpy.context.scene.DocProperties.ifc_files:
|
||||
new = bpy.context.scene.DocProperties.ifc_files.add()
|
||||
new.name = output_file
|
||||
return {'FINISHED'}
|
||||
|
||||
class ImportIFC(bpy.types.Operator, ImportHelper):
|
||||
|
||||
Reference in New Issue
Block a user