bim.export_ifccsv - clarify description and title

This commit is contained in:
Andrej730
2025-03-24 16:12:28 +05:00
parent 2f34f997dd
commit 4f091af935
2 changed files with 11 additions and 1 deletions
@@ -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":
+4 -1
View File
@@ -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")