Package IFCCSV with BlenderBIM, with UI to import export CSV IFC data

This commit is contained in:
Dion Moult
2020-04-26 14:41:38 +10:00
parent 753fdae0d4
commit cbfd41ad28
5 changed files with 109 additions and 0 deletions
+30
View File
@@ -648,6 +648,36 @@ class BIM_PT_search(Panel):
row.operator('bim.colour_by_pset', text='', icon='BRUSH_DATA')
class BIM_PT_ifccsv(Panel):
bl_label = "IFC CSV"
bl_idname = "BIM_PT_ifccsv"
bl_options = {'DEFAULT_CLOSED'}
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
bl_context = "scene"
def draw(self, context):
layout = self.layout
scene = context.scene
props = scene.BIMProperties
row = layout.row()
row.prop(props, 'ifc_selector')
row = layout.row()
row.operator('bim.add_csv_attribute')
for index, attribute in enumerate(props.csv_attributes):
row = layout.row(align=True)
row.prop(attribute, 'name', text='')
row.operator('bim.remove_csv_attribute', icon='X', text='').index = index
row = layout.row(align=True)
row.operator('bim.export_ifccsv', icon='EXPORT')
row.operator('bim.import_ifccsv', icon='IMPORT')
class BIM_PT_bcf(Panel):
bl_label = "BIM Collaboration Format"
bl_idname = "BIM_PT_bcf"