mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +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):
|
||||
bl_idname = "bim.execute_ifcfm_federate"
|
||||
bl_label = "Execute IfcFM"
|
||||
file_format: bpy.props.StringProperty()
|
||||
bl_label = "Merge IfcFM SpreadSheets"
|
||||
filter_glob: bpy.props.StringProperty(default="*.ods;*.xlsx", options={"HIDDEN"})
|
||||
filepath: bpy.props.StringProperty(subtype="FILE_PATH")
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
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):
|
||||
props = context.scene.BIMFMProperties
|
||||
|
||||
Reference in New Issue
Block a user