(ifc_file: ifcopenshell.file, element: ifcopenshell.entity_instance)
| 434 | |
| 435 | |
| 436 | def 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 | |
| 460 | def get_type_data(ifc_file: ifcopenshell.file, element: ifcopenshell.entity_instance) -> dict[str, Any]: |
nothing calls this directly
no test coverage detected