mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-31 00:46:36 +00:00
bim.execute_ifcfm_federate - small fixes
This commit is contained in:
@@ -105,15 +105,17 @@ class SelectFMSpreadsheetFiles(bpy.types.Operator):
|
|||||||
|
|
||||||
class ExecuteIfcFMFederate(bpy.types.Operator):
|
class ExecuteIfcFMFederate(bpy.types.Operator):
|
||||||
bl_idname = "bim.execute_ifcfm_federate"
|
bl_idname = "bim.execute_ifcfm_federate"
|
||||||
bl_label = "Execute IfcFM"
|
bl_label = "Merge IfcFM SpreadSheets"
|
||||||
file_format: bpy.props.StringProperty()
|
|
||||||
filter_glob: bpy.props.StringProperty(default="*.ods;*.xlsx", options={"HIDDEN"})
|
filter_glob: bpy.props.StringProperty(default="*.ods;*.xlsx", options={"HIDDEN"})
|
||||||
filepath: bpy.props.StringProperty(subtype="FILE_PATH")
|
filepath: bpy.props.StringProperty(subtype="FILE_PATH")
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
props = context.scene.BIMFMProperties
|
props = context.scene.BIMFMProperties
|
||||||
return props.spreadsheet_files
|
if not props.spreadsheet_files:
|
||||||
|
cls.poll_message_set("No spreadsheet files selected.")
|
||||||
|
return False
|
||||||
|
return True
|
||||||
|
|
||||||
def invoke(self, context, event):
|
def invoke(self, context, event):
|
||||||
props = context.scene.BIMFMProperties
|
props = context.scene.BIMFMProperties
|
||||||
|
|||||||
Reference in New Issue
Block a user