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

Function get_resource_data

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

Source from the content-addressed store, hash-verified

743
744
745def get_resource_data(ifc_file: ifcopenshell.file, element: ifcopenshell.entity_instance) -> dict[str, Any]:
746 return {
747 "Name": val(element.Name),
748 "CreatedBy": get_created_by(element),
749 "CreatedOn": get_created_on(element),
750 "Category": val(element.ObjectType),
751 "ExternalSystem": get_external_system(element),
752 "ExternalObject": element.is_a(),
753 "ExternalIdentifier": element.GlobalId,
754 "Description": val(element.Description) or val(element.Name),
755 }
756
757
758def get_job_data(ifc_file: ifcopenshell.file, element: ifcopenshell.entity_instance) -> dict[str, Any]:

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected