mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 06:18:09 +00:00
sort keys in the entity to type mapping
This commit is contained in:
@@ -79,7 +79,7 @@ def generate_ifc4_entity_map(filepath, schema_name, manual_corrections={}):
|
|||||||
check_all_types_are_mapped(schema, type_to_entity_map)
|
check_all_types_are_mapped(schema, type_to_entity_map)
|
||||||
schema_version = schema_name.lower().strip("ifc")
|
schema_version = schema_name.lower().strip("ifc")
|
||||||
with open(f"src/ifcopenshell-python/ifcopenshell/util/entity_to_type_map_{schema_version}.json", "w") as f:
|
with open(f"src/ifcopenshell-python/ifcopenshell/util/entity_to_type_map_{schema_version}.json", "w") as f:
|
||||||
json.dump(entity_to_type_map, f, indent=4, sort_keys=False)
|
json.dump(entity_to_type_map, f, indent=4, sort_keys=True)
|
||||||
|
|
||||||
return entity_to_type_map
|
return entity_to_type_map
|
||||||
|
|
||||||
@@ -124,7 +124,7 @@ def generate_ifc2x3_entity_map():
|
|||||||
check_all_types_are_mapped(schema2x3, type_to_entity_map2x3)
|
check_all_types_are_mapped(schema2x3, type_to_entity_map2x3)
|
||||||
|
|
||||||
with open("src/ifcopenshell-python/ifcopenshell/util/entity_to_type_map_2x3.json", "w") as f:
|
with open("src/ifcopenshell-python/ifcopenshell/util/entity_to_type_map_2x3.json", "w") as f:
|
||||||
json.dump(entity_to_type_map, f, indent=4, sort_keys=False)
|
json.dump(entity_to_type_map, f, indent=4, sort_keys=True)
|
||||||
|
|
||||||
return entity_to_type_map
|
return entity_to_type_map
|
||||||
|
|
||||||
|
|||||||
@@ -95,11 +95,6 @@
|
|||||||
"IfcFurnishingElementType",
|
"IfcFurnishingElementType",
|
||||||
"IfcTransportElementType"
|
"IfcTransportElementType"
|
||||||
],
|
],
|
||||||
"IfcElectricalElement": [
|
|
||||||
"IfcDistributionElementType",
|
|
||||||
"IfcFurnishingElementType",
|
|
||||||
"IfcTransportElementType"
|
|
||||||
],
|
|
||||||
"IfcElectricDistributionPoint": [
|
"IfcElectricDistributionPoint": [
|
||||||
"IfcAirTerminalBoxType",
|
"IfcAirTerminalBoxType",
|
||||||
"IfcDamperType",
|
"IfcDamperType",
|
||||||
@@ -109,6 +104,11 @@
|
|||||||
"IfcSwitchingDeviceType",
|
"IfcSwitchingDeviceType",
|
||||||
"IfcValveType"
|
"IfcValveType"
|
||||||
],
|
],
|
||||||
|
"IfcElectricalElement": [
|
||||||
|
"IfcDistributionElementType",
|
||||||
|
"IfcFurnishingElementType",
|
||||||
|
"IfcTransportElementType"
|
||||||
|
],
|
||||||
"IfcElement": [
|
"IfcElement": [
|
||||||
"IfcDistributionElementType",
|
"IfcDistributionElementType",
|
||||||
"IfcFurnishingElementType",
|
"IfcFurnishingElementType",
|
||||||
|
|||||||
@@ -20,6 +20,9 @@
|
|||||||
"IfcBeam": [
|
"IfcBeam": [
|
||||||
"IfcBeamType"
|
"IfcBeamType"
|
||||||
],
|
],
|
||||||
|
"IfcBeamStandardCase": [
|
||||||
|
"IfcBeamType"
|
||||||
|
],
|
||||||
"IfcBoiler": [
|
"IfcBoiler": [
|
||||||
"IfcBoilerType"
|
"IfcBoilerType"
|
||||||
],
|
],
|
||||||
@@ -50,12 +53,18 @@
|
|||||||
"IfcChimney": [
|
"IfcChimney": [
|
||||||
"IfcChimneyType"
|
"IfcChimneyType"
|
||||||
],
|
],
|
||||||
|
"IfcCivilElement": [
|
||||||
|
"IfcCivilElementType"
|
||||||
|
],
|
||||||
"IfcCoil": [
|
"IfcCoil": [
|
||||||
"IfcCoilType"
|
"IfcCoilType"
|
||||||
],
|
],
|
||||||
"IfcColumn": [
|
"IfcColumn": [
|
||||||
"IfcColumnType"
|
"IfcColumnType"
|
||||||
],
|
],
|
||||||
|
"IfcColumnStandardCase": [
|
||||||
|
"IfcColumnType"
|
||||||
|
],
|
||||||
"IfcCommunicationsAppliance": [
|
"IfcCommunicationsAppliance": [
|
||||||
"IfcCommunicationsApplianceType"
|
"IfcCommunicationsApplianceType"
|
||||||
],
|
],
|
||||||
@@ -89,10 +98,23 @@
|
|||||||
"IfcDistributionChamberElement": [
|
"IfcDistributionChamberElement": [
|
||||||
"IfcDistributionChamberElementType"
|
"IfcDistributionChamberElementType"
|
||||||
],
|
],
|
||||||
|
"IfcDistributionControlElement": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
|
"IfcDistributionElement": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
|
"IfcDistributionFlowElement": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
"IfcDoor": [
|
"IfcDoor": [
|
||||||
"IfcDoorType",
|
"IfcDoorType",
|
||||||
"IfcDoorStyle"
|
"IfcDoorStyle"
|
||||||
],
|
],
|
||||||
|
"IfcDoorStandardCase": [
|
||||||
|
"IfcDoorType",
|
||||||
|
"IfcDoorStyle"
|
||||||
|
],
|
||||||
"IfcDuctFitting": [
|
"IfcDuctFitting": [
|
||||||
"IfcDuctFittingType"
|
"IfcDuctFittingType"
|
||||||
],
|
],
|
||||||
@@ -123,6 +145,9 @@
|
|||||||
"IfcElementAssembly": [
|
"IfcElementAssembly": [
|
||||||
"IfcElementAssemblyType"
|
"IfcElementAssemblyType"
|
||||||
],
|
],
|
||||||
|
"IfcEnergyConversionDevice": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
"IfcEngine": [
|
"IfcEngine": [
|
||||||
"IfcEngineType"
|
"IfcEngineType"
|
||||||
],
|
],
|
||||||
@@ -144,15 +169,39 @@
|
|||||||
"IfcFireSuppressionTerminal": [
|
"IfcFireSuppressionTerminal": [
|
||||||
"IfcFireSuppressionTerminalType"
|
"IfcFireSuppressionTerminalType"
|
||||||
],
|
],
|
||||||
|
"IfcFlowController": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
|
"IfcFlowFitting": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
"IfcFlowInstrument": [
|
"IfcFlowInstrument": [
|
||||||
"IfcFlowInstrumentType"
|
"IfcFlowInstrumentType"
|
||||||
],
|
],
|
||||||
"IfcFlowMeter": [
|
"IfcFlowMeter": [
|
||||||
"IfcFlowMeterType"
|
"IfcFlowMeterType"
|
||||||
],
|
],
|
||||||
|
"IfcFlowMovingDevice": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
|
"IfcFlowSegment": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
|
"IfcFlowStorageDevice": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
|
"IfcFlowTerminal": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
|
"IfcFlowTreatmentDevice": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
"IfcFooting": [
|
"IfcFooting": [
|
||||||
"IfcFootingType"
|
"IfcFootingType"
|
||||||
],
|
],
|
||||||
|
"IfcFurnishingElement": [
|
||||||
|
"IfcFurnishingElementType"
|
||||||
|
],
|
||||||
"IfcFurniture": [
|
"IfcFurniture": [
|
||||||
"IfcFurnitureType"
|
"IfcFurnitureType"
|
||||||
],
|
],
|
||||||
@@ -186,6 +235,9 @@
|
|||||||
"IfcMember": [
|
"IfcMember": [
|
||||||
"IfcMemberType"
|
"IfcMemberType"
|
||||||
],
|
],
|
||||||
|
"IfcMemberStandardCase": [
|
||||||
|
"IfcMemberType"
|
||||||
|
],
|
||||||
"IfcMotorConnection": [
|
"IfcMotorConnection": [
|
||||||
"IfcMotorConnectionType"
|
"IfcMotorConnectionType"
|
||||||
],
|
],
|
||||||
@@ -204,6 +256,9 @@
|
|||||||
"IfcPlate": [
|
"IfcPlate": [
|
||||||
"IfcPlateType"
|
"IfcPlateType"
|
||||||
],
|
],
|
||||||
|
"IfcPlateStandardCase": [
|
||||||
|
"IfcPlateType"
|
||||||
|
],
|
||||||
"IfcProtectiveDevice": [
|
"IfcProtectiveDevice": [
|
||||||
"IfcProtectiveDeviceType"
|
"IfcProtectiveDeviceType"
|
||||||
],
|
],
|
||||||
@@ -243,6 +298,12 @@
|
|||||||
"IfcSlab": [
|
"IfcSlab": [
|
||||||
"IfcSlabType"
|
"IfcSlabType"
|
||||||
],
|
],
|
||||||
|
"IfcSlabElementedCase": [
|
||||||
|
"IfcSlabType"
|
||||||
|
],
|
||||||
|
"IfcSlabStandardCase": [
|
||||||
|
"IfcSlabType"
|
||||||
|
],
|
||||||
"IfcSolarDevice": [
|
"IfcSolarDevice": [
|
||||||
"IfcSolarDeviceType"
|
"IfcSolarDeviceType"
|
||||||
],
|
],
|
||||||
@@ -303,6 +364,12 @@
|
|||||||
"IfcWall": [
|
"IfcWall": [
|
||||||
"IfcWallType"
|
"IfcWallType"
|
||||||
],
|
],
|
||||||
|
"IfcWallElementedCase": [
|
||||||
|
"IfcWallType"
|
||||||
|
],
|
||||||
|
"IfcWallStandardCase": [
|
||||||
|
"IfcWallType"
|
||||||
|
],
|
||||||
"IfcWasteTerminal": [
|
"IfcWasteTerminal": [
|
||||||
"IfcWasteTerminalType"
|
"IfcWasteTerminalType"
|
||||||
],
|
],
|
||||||
@@ -310,73 +377,6 @@
|
|||||||
"IfcWindowType",
|
"IfcWindowType",
|
||||||
"IfcWindowStyle"
|
"IfcWindowStyle"
|
||||||
],
|
],
|
||||||
"IfcCivilElement": [
|
|
||||||
"IfcCivilElementType"
|
|
||||||
],
|
|
||||||
"IfcFurnishingElement": [
|
|
||||||
"IfcFurnishingElementType"
|
|
||||||
],
|
|
||||||
"IfcDistributionElement": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcBeamStandardCase": [
|
|
||||||
"IfcBeamType"
|
|
||||||
],
|
|
||||||
"IfcColumnStandardCase": [
|
|
||||||
"IfcColumnType"
|
|
||||||
],
|
|
||||||
"IfcDistributionControlElement": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcDistributionFlowElement": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcDoorStandardCase": [
|
|
||||||
"IfcDoorType",
|
|
||||||
"IfcDoorStyle"
|
|
||||||
],
|
|
||||||
"IfcEnergyConversionDevice": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcFlowController": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcFlowFitting": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcFlowMovingDevice": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcFlowSegment": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcFlowStorageDevice": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcFlowTerminal": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcFlowTreatmentDevice": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcMemberStandardCase": [
|
|
||||||
"IfcMemberType"
|
|
||||||
],
|
|
||||||
"IfcPlateStandardCase": [
|
|
||||||
"IfcPlateType"
|
|
||||||
],
|
|
||||||
"IfcSlabElementedCase": [
|
|
||||||
"IfcSlabType"
|
|
||||||
],
|
|
||||||
"IfcSlabStandardCase": [
|
|
||||||
"IfcSlabType"
|
|
||||||
],
|
|
||||||
"IfcWallElementedCase": [
|
|
||||||
"IfcWallType"
|
|
||||||
],
|
|
||||||
"IfcWallStandardCase": [
|
|
||||||
"IfcWallType"
|
|
||||||
],
|
|
||||||
"IfcWindowStandardCase": [
|
"IfcWindowStandardCase": [
|
||||||
"IfcWindowType",
|
"IfcWindowType",
|
||||||
"IfcWindowStyle"
|
"IfcWindowStyle"
|
||||||
|
|||||||
@@ -32,6 +32,9 @@
|
|||||||
"IfcBuildingElementProxy": [
|
"IfcBuildingElementProxy": [
|
||||||
"IfcBuildingElementProxyType"
|
"IfcBuildingElementProxyType"
|
||||||
],
|
],
|
||||||
|
"IfcBuiltElement": [
|
||||||
|
"IfcBuiltElementType"
|
||||||
|
],
|
||||||
"IfcBurner": [
|
"IfcBurner": [
|
||||||
"IfcBurnerType"
|
"IfcBurnerType"
|
||||||
],
|
],
|
||||||
@@ -56,6 +59,9 @@
|
|||||||
"IfcChimney": [
|
"IfcChimney": [
|
||||||
"IfcChimneyType"
|
"IfcChimneyType"
|
||||||
],
|
],
|
||||||
|
"IfcCivilElement": [
|
||||||
|
"IfcCivilElementType"
|
||||||
|
],
|
||||||
"IfcCoil": [
|
"IfcCoil": [
|
||||||
"IfcCoilType"
|
"IfcCoilType"
|
||||||
],
|
],
|
||||||
@@ -107,6 +113,15 @@
|
|||||||
"IfcDistributionChamberElement": [
|
"IfcDistributionChamberElement": [
|
||||||
"IfcDistributionChamberElementType"
|
"IfcDistributionChamberElementType"
|
||||||
],
|
],
|
||||||
|
"IfcDistributionControlElement": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
|
"IfcDistributionElement": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
|
"IfcDistributionFlowElement": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
"IfcDoor": [
|
"IfcDoor": [
|
||||||
"IfcDoorType"
|
"IfcDoorType"
|
||||||
],
|
],
|
||||||
@@ -119,6 +134,12 @@
|
|||||||
"IfcDuctSilencer": [
|
"IfcDuctSilencer": [
|
||||||
"IfcDuctSilencerType"
|
"IfcDuctSilencerType"
|
||||||
],
|
],
|
||||||
|
"IfcEarthworksElement": [
|
||||||
|
"IfcBuiltElementType"
|
||||||
|
],
|
||||||
|
"IfcEarthworksFill": [
|
||||||
|
"IfcBuiltElementType"
|
||||||
|
],
|
||||||
"IfcElectricAppliance": [
|
"IfcElectricAppliance": [
|
||||||
"IfcElectricApplianceType"
|
"IfcElectricApplianceType"
|
||||||
],
|
],
|
||||||
@@ -143,6 +164,9 @@
|
|||||||
"IfcElementAssembly": [
|
"IfcElementAssembly": [
|
||||||
"IfcElementAssemblyType"
|
"IfcElementAssemblyType"
|
||||||
],
|
],
|
||||||
|
"IfcEnergyConversionDevice": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
"IfcEngine": [
|
"IfcEngine": [
|
||||||
"IfcEngineType"
|
"IfcEngineType"
|
||||||
],
|
],
|
||||||
@@ -164,15 +188,39 @@
|
|||||||
"IfcFireSuppressionTerminal": [
|
"IfcFireSuppressionTerminal": [
|
||||||
"IfcFireSuppressionTerminalType"
|
"IfcFireSuppressionTerminalType"
|
||||||
],
|
],
|
||||||
|
"IfcFlowController": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
|
"IfcFlowFitting": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
"IfcFlowInstrument": [
|
"IfcFlowInstrument": [
|
||||||
"IfcFlowInstrumentType"
|
"IfcFlowInstrumentType"
|
||||||
],
|
],
|
||||||
"IfcFlowMeter": [
|
"IfcFlowMeter": [
|
||||||
"IfcFlowMeterType"
|
"IfcFlowMeterType"
|
||||||
],
|
],
|
||||||
|
"IfcFlowMovingDevice": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
|
"IfcFlowSegment": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
|
"IfcFlowStorageDevice": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
|
"IfcFlowTerminal": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
|
"IfcFlowTreatmentDevice": [
|
||||||
|
"IfcDistributionElementType"
|
||||||
|
],
|
||||||
"IfcFooting": [
|
"IfcFooting": [
|
||||||
"IfcFootingType"
|
"IfcFootingType"
|
||||||
],
|
],
|
||||||
|
"IfcFurnishingElement": [
|
||||||
|
"IfcFurnishingElementType"
|
||||||
|
],
|
||||||
"IfcFurniture": [
|
"IfcFurniture": [
|
||||||
"IfcFurnitureType"
|
"IfcFurnitureType"
|
||||||
],
|
],
|
||||||
@@ -266,6 +314,9 @@
|
|||||||
"IfcRampFlight": [
|
"IfcRampFlight": [
|
||||||
"IfcRampFlightType"
|
"IfcRampFlightType"
|
||||||
],
|
],
|
||||||
|
"IfcReinforcedSoil": [
|
||||||
|
"IfcBuiltElementType"
|
||||||
|
],
|
||||||
"IfcReinforcingBar": [
|
"IfcReinforcingBar": [
|
||||||
"IfcReinforcingBarType"
|
"IfcReinforcingBarType"
|
||||||
],
|
],
|
||||||
@@ -365,64 +416,13 @@
|
|||||||
"IfcWall": [
|
"IfcWall": [
|
||||||
"IfcWallType"
|
"IfcWallType"
|
||||||
],
|
],
|
||||||
|
"IfcWallStandardCase": [
|
||||||
|
"IfcWallType"
|
||||||
|
],
|
||||||
"IfcWasteTerminal": [
|
"IfcWasteTerminal": [
|
||||||
"IfcWasteTerminalType"
|
"IfcWasteTerminalType"
|
||||||
],
|
],
|
||||||
"IfcWindow": [
|
"IfcWindow": [
|
||||||
"IfcWindowType"
|
"IfcWindowType"
|
||||||
],
|
|
||||||
"IfcCivilElement": [
|
|
||||||
"IfcCivilElementType"
|
|
||||||
],
|
|
||||||
"IfcFurnishingElement": [
|
|
||||||
"IfcFurnishingElementType"
|
|
||||||
],
|
|
||||||
"IfcDistributionElement": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcBuiltElement": [
|
|
||||||
"IfcBuiltElementType"
|
|
||||||
],
|
|
||||||
"IfcDistributionControlElement": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcDistributionFlowElement": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcEarthworksElement": [
|
|
||||||
"IfcBuiltElementType"
|
|
||||||
],
|
|
||||||
"IfcEarthworksFill": [
|
|
||||||
"IfcBuiltElementType"
|
|
||||||
],
|
|
||||||
"IfcEnergyConversionDevice": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcFlowController": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcFlowFitting": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcFlowMovingDevice": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcFlowSegment": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcFlowStorageDevice": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcFlowTerminal": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcFlowTreatmentDevice": [
|
|
||||||
"IfcDistributionElementType"
|
|
||||||
],
|
|
||||||
"IfcReinforcedSoil": [
|
|
||||||
"IfcBuiltElementType"
|
|
||||||
],
|
|
||||||
"IfcWallStandardCase": [
|
|
||||||
"IfcWallType"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user