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

Function get_system_data

src/ifcfm/ifcfm/cobie24.py:630–643  ·  view source on GitHub ↗
(ifc_file: ifcopenshell.file, element: ifcopenshell.entity_instance)

Source from the content-addressed store, hash-verified

628
629
630def get_system_data(ifc_file: ifcopenshell.file, element: ifcopenshell.entity_instance) -> dict[str, Any]:
631 system, component = element
632 component_name = val(component.Name)
633 return {
634 "Name": val(system.Name),
635 "CreatedBy": get_created_by(system),
636 "CreatedOn": get_created_on(system),
637 "Category": get_category(system),
638 "ComponentNames": component_name,
639 "ExternalSystem": get_external_system(system),
640 "ExternalObject": system.is_a(),
641 "ExternalIdentifier": system.GlobalId,
642 "Description": val(system.Description) or val(system.Name),
643 }
644
645
646def get_assembly_data(ifc_file: ifcopenshell.file, element: ifcopenshell.entity_instance) -> dict[str, Any]:

Callers

nothing calls this directly

Calls 6

valFunction · 0.70
get_created_byFunction · 0.70
get_created_onFunction · 0.70
get_categoryFunction · 0.70
get_external_systemFunction · 0.70
is_aMethod · 0.45

Tested by

no test coverage detected