@@ -86,9 +86,7 @@ class NewProject(bpy.types.Operator):
8686 bl_label = "New Project"
8787 bl_options = {"REGISTER" , "UNDO" }
8888 bl_description = "Start a new IFC project in a fresh session"
89- preset : bpy .props .EnumProperty (
90- items = [(i , i , "" ) for i in get_args (PresetType )]
91- )
89+ preset : bpy .props .EnumProperty (items = [(i , i , "" ) for i in get_args (PresetType )])
9290
9391 if TYPE_CHECKING :
9492 preset : PresetType
@@ -178,13 +176,9 @@ class SelectLibraryFile(bpy.types.Operator, IFCFileSelector, ImportHelper):
178176 bl_description = (
179177 "Select an IFC file that can be used as a library.\n \n ALT+click to reload the current loaded library file."
180178 )
181- filter_glob : bpy .props .StringProperty (
182- default = "*.ifc;*.ifczip;*.ifcxml" , options = {"HIDDEN" }
183- )
179+ filter_glob : bpy .props .StringProperty (default = "*.ifc;*.ifczip;*.ifcxml" , options = {"HIDDEN" })
184180 append_all : bpy .props .BoolProperty (default = False )
185- use_relative_path : bpy .props .BoolProperty (
186- name = "Use Relative Path" , default = False
187- )
181+ use_relative_path : bpy .props .BoolProperty (name = "Use Relative Path" , default = False )
188182
189183 if TYPE_CHECKING :
190184 filter_glob : str
@@ -602,9 +596,7 @@ class AppendLibraryElement(bpy.types.Operator, tool.Ifc.Operator):
602596 )
603597 definition : bpy .props .IntProperty ()
604598 prop_index : bpy .props .IntProperty ()
605- assume_unique_by_name : bpy .props .BoolProperty (
606- name = "Assume Unique By Name" , default = True , options = {"SKIP_SAVE" }
607- )
599+ assume_unique_by_name : bpy .props .BoolProperty (name = "Assume Unique By Name" , default = True , options = {"SKIP_SAVE" })
608600
609601 if TYPE_CHECKING :
610602 definition : int
@@ -959,12 +951,8 @@ class LoadProject(bpy.types.Operator, IFCFileSelector, ImportHelper):
959951 bl_label = "Load Project"
960952 bl_options = {"REGISTER" , "UNDO" }
961953 bl_description = "Load an existing IFC project"
962- filepath : bpy .props .StringProperty (
963- subtype = "FILE_PATH" , options = {"SKIP_SAVE" }
964- )
965- filter_glob : bpy .props .StringProperty (
966- default = "*.ifc;*.ifczip;*.ifcxml;*.ifcsqlite" , options = {"HIDDEN" }
967- )
954+ filepath : bpy .props .StringProperty (subtype = "FILE_PATH" , options = {"SKIP_SAVE" })
955+ filter_glob : bpy .props .StringProperty (default = "*.ifc;*.ifczip;*.ifcxml;*.ifcsqlite" , options = {"HIDDEN" })
968956 is_advanced : bpy .props .BoolProperty (
969957 name = "Enable Advanced Mode" ,
970958 description = "Load IFC file with advanced settings. Checking this option will skip loading IFC file and will open advanced load settings" ,
@@ -988,9 +976,7 @@ class LoadProject(bpy.types.Operator, IFCFileSelector, ImportHelper):
988976 ),
989977 default = False ,
990978 )
991- use_detailed_tooltip : bpy .props .BoolProperty (
992- default = False , options = {"HIDDEN" }
993- )
979+ use_detailed_tooltip : bpy .props .BoolProperty (default = False , options = {"HIDDEN" })
994980 filename_ext = ".ifc"
995981
996982 if TYPE_CHECKING :
@@ -1882,21 +1868,11 @@ class ExportIFC(bpy.types.Operator, ExportHelper):
18821868 bl_options = {"REGISTER" , "UNDO" }
18831869 filename_ext = ".ifc"
18841870 supported_filexts = (".ifc" , ".ifczip" , ".ifcjson" )
1885- filter_glob : bpy .props .StringProperty (
1886- default = ";" .join (f"*{ ext } " for ext in supported_filexts ), options = {"HIDDEN" }
1887- )
1888- json_version : bpy .props .EnumProperty (
1889- items = [("4" , "4" , "" ), ("5a" , "5a" , "" )], name = "IFC JSON Version"
1890- )
1891- json_compact : bpy .props .BoolProperty (
1892- name = "Export Compact IFCJSON" , default = False
1893- )
1894- should_save_as : bpy .props .BoolProperty (
1895- name = "Should Save As" , default = False , options = {"HIDDEN" }
1896- )
1897- use_relative_path : bpy .props .BoolProperty (
1898- name = "Use Relative Path" , default = False
1899- )
1871+ filter_glob : bpy .props .StringProperty (default = ";" .join (f"*{ ext } " for ext in supported_filexts ), options = {"HIDDEN" })
1872+ json_version : bpy .props .EnumProperty (items = [("4" , "4" , "" ), ("5a" , "5a" , "" )], name = "IFC JSON Version" )
1873+ json_compact : bpy .props .BoolProperty (name = "Export Compact IFCJSON" , default = False )
1874+ should_save_as : bpy .props .BoolProperty (name = "Should Save As" , default = False , options = {"HIDDEN" })
1875+ use_relative_path : bpy .props .BoolProperty (name = "Use Relative Path" , default = False )
19001876
19011877 if TYPE_CHECKING :
19021878 filter_glob : str
@@ -2918,12 +2894,8 @@ class IFCFileHandlerOperator(bpy.types.Operator):
29182894 bl_label = "Import .ifc file"
29192895 bl_options = {"REGISTER" , "UNDO" , "INTERNAL" }
29202896
2921- directory : bpy .props .StringProperty (
2922- subtype = "FILE_PATH" , options = {"SKIP_SAVE" , "HIDDEN" }
2923- )
2924- files : bpy .props .CollectionProperty (
2925- type = bpy .types .OperatorFileListElement , options = {"SKIP_SAVE" , "HIDDEN" }
2926- )
2897+ directory : bpy .props .StringProperty (subtype = "FILE_PATH" , options = {"SKIP_SAVE" , "HIDDEN" })
2898+ files : bpy .props .CollectionProperty (type = bpy .types .OperatorFileListElement , options = {"SKIP_SAVE" , "HIDDEN" })
29272899
29282900 if TYPE_CHECKING :
29292901 directory : str
0 commit comments