mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +00:00
Package IFCCSV with BlenderBIM, with UI to import export CSV IFC data
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user