mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 00:07:53 +00:00
@@ -97,7 +97,7 @@ class IfcClassData:
|
|||||||
return types_enum
|
return types_enum
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def ifc_classes_suggestions(cls):
|
def ifc_classes_suggestions(cls) -> dict[str, list[dict[str, Union[str, None]]]]:
|
||||||
# suggestions : dict[class_name: list[dict[predefined_type, name(optional)]]]
|
# suggestions : dict[class_name: list[dict[predefined_type, name(optional)]]]
|
||||||
suggestions = defaultdict(list)
|
suggestions = defaultdict(list)
|
||||||
version = tool.Ifc.get_schema()
|
version = tool.Ifc.get_schema()
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ def get_ifc_classes(self: "BIMRootProperties", context: bpy.types.Context) -> li
|
|||||||
return IfcClassData.data["ifc_classes"]
|
return IfcClassData.data["ifc_classes"]
|
||||||
|
|
||||||
|
|
||||||
def get_ifc_classes_suggestions(self: "BIMRootProperties", context: bpy.types.Context) -> list[tuple[str, str]]:
|
def get_ifc_classes_suggestions() -> dict[str, list[dict[str, Union[str, None]]]]:
|
||||||
if not IfcClassData.is_loaded:
|
if not IfcClassData.is_loaded:
|
||||||
IfcClassData.load()
|
IfcClassData.load()
|
||||||
return IfcClassData.data["ifc_classes_suggestions"]
|
return IfcClassData.data["ifc_classes_suggestions"]
|
||||||
|
|||||||
Reference in New Issue
Block a user