MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / label

Method label

src/bonsai/bonsai/bim/module/spatial/data.py:76–82  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

74
75 @classmethod
76 def label(cls):
77 container = ifcopenshell.util.element.get_container(tool.Ifc.get_entity(bpy.context.active_object))
78 if container:
79 label = f"{container.is_a()}/{container.Name or ''}"
80 if not cls.is_directly_contained():
81 label += "*"
82 return label
83
84 @classmethod
85 def references(cls) -> list[dict[str, Any]]:

Callers 15

drawMethod · 0.80
_executeMethod · 0.80
drawMethod · 0.80
layout_file_selectMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
draw_itemMethod · 0.80
draw_itemMethod · 0.80
draw_gizmo_parametersMethod · 0.80
draw_other_settingsMethod · 0.80
drawMethod · 0.80
draw_headerMethod · 0.80

Calls 4

is_directly_containedMethod · 0.80
get_containerMethod · 0.45
get_entityMethod · 0.45
is_aMethod · 0.45

Tested by

no test coverage detected