mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 11:24:19 +00:00
bim.export_ifccsv - clarify description and title
This commit is contained in:
@@ -201,6 +201,13 @@ class ExportIfcCsv(bpy.types.Operator):
|
||||
return False
|
||||
return True
|
||||
|
||||
@classmethod
|
||||
def description(cls, context, properties):
|
||||
props = tool.Blender.get_csv_props()
|
||||
if props.format == "web":
|
||||
return "Open Web UI for spreadsheet data export."
|
||||
return f"Export IFC data as a spreadsheet by the provided filepath in '{props.format}' format ."
|
||||
|
||||
def invoke(self, context, event):
|
||||
props = tool.Blender.get_csv_props()
|
||||
if props.format == "web":
|
||||
|
||||
@@ -124,5 +124,8 @@ class BIM_PT_ifccsv(Panel):
|
||||
row.operator("bim.remove_csv_attribute", icon="X", text="").index = index
|
||||
|
||||
row = layout.row(align=True)
|
||||
row.operator("bim.export_ifccsv", icon="EXPORT", text="Export IFC to " + props.format.upper())
|
||||
if props.format == "web":
|
||||
row.operator("bim.export_ifccsv", icon="EXPORT", text="Open Web UI")
|
||||
else:
|
||||
row.operator("bim.export_ifccsv", icon="EXPORT", text="Export IFC to " + props.format.upper())
|
||||
row.operator("bim.import_ifccsv", icon="IMPORT")
|
||||
|
||||
Reference in New Issue
Block a user