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

Function get_zone_data

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

Source from the content-addressed store, hash-verified

434
435
436def get_zone_data(ifc_file: ifcopenshell.file, element: ifcopenshell.entity_instance) -> dict[str, Any]:
437 zone, space = element
438
439 name = zone.Name
440 parent = ifcopenshell.util.element.get_aggregate(zone)
441 if parent and val(parent.Name):
442 name = parent.Name + "-" + name
443
444 category = get_category(zone)
445 space_name = val(space.Name) if space else None
446
447 return {
448 "Name": name,
449 "CreatedBy": get_created_by(zone),
450 "CreatedOn": get_created_on(zone),
451 "Category": category,
452 "SpaceNames": space_name,
453 "ExternalSystem": get_external_system(zone),
454 "ExternalObject": zone.is_a(),
455 "ExternalIdentifier": zone.GlobalId,
456 "Description": val(zone.Description) or zone.Name,
457 }
458
459
460def get_type_data(ifc_file: ifcopenshell.file, element: ifcopenshell.entity_instance) -> dict[str, Any]:

Callers

nothing calls this directly

Calls 6

valFunction · 0.70
get_categoryFunction · 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