mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Reformat parametrized "Save" in IFC project
This commit is contained in:
@@ -819,7 +819,7 @@ class ExportIFC(bpy.types.Operator):
|
|||||||
json_compact: bpy.props.BoolProperty(name="Export Compact IFCJSON", default=False)
|
json_compact: bpy.props.BoolProperty(name="Export Compact IFCJSON", default=False)
|
||||||
should_save_as: bpy.props.BoolProperty(name="Should Save As", default=False)
|
should_save_as: bpy.props.BoolProperty(name="Should Save As", default=False)
|
||||||
use_relative_path: bpy.props.BoolProperty(name="Use Relative Path", default=False)
|
use_relative_path: bpy.props.BoolProperty(name="Use Relative Path", default=False)
|
||||||
|
|
||||||
def invoke(self, context, event):
|
def invoke(self, context, event):
|
||||||
if not IfcStore.get_file():
|
if not IfcStore.get_file():
|
||||||
self.report({"ERROR"}, "No IFC project is available for export - create or import a project first.")
|
self.report({"ERROR"}, "No IFC project is available for export - create or import a project first.")
|
||||||
@@ -893,10 +893,10 @@ class ExportIFC(bpy.types.Operator):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def description(cls, context, properties):
|
def description(cls, context, properties):
|
||||||
if properties.should_save_as == False:
|
if properties.should_save_as:
|
||||||
return "Export the IFC project to this file"
|
|
||||||
else:
|
|
||||||
return "Export the IFC project to a selected file"
|
return "Export the IFC project to a selected file"
|
||||||
|
else:
|
||||||
|
return "Export the IFC project to this file"
|
||||||
|
|
||||||
|
|
||||||
class ImportIFC(bpy.types.Operator):
|
class ImportIFC(bpy.types.Operator):
|
||||||
|
|||||||
Reference in New Issue
Block a user