mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Merge branch 'v0.6.0' of https://github.com/IfcOpenShell/IfcOpenShell into v0.6.0
This commit is contained in:
@@ -31,7 +31,7 @@ class IfcImporter():
|
||||
bpy.context.scene.collection.children.link(self.project['blender'])
|
||||
|
||||
def create_spatial_hierarchy(self):
|
||||
elements = self.file.by_type('IfcSpatialStructureElement')
|
||||
elements = self.file.by_type('IfcSite') + self.file.by_type('IfcBuilding') + self.file.by_type('IfcBuildingStorey')
|
||||
while len(self.spatial_structure_elements) < len(elements):
|
||||
for element in elements:
|
||||
parent = element.Decomposes[0].RelatingObject
|
||||
|
||||
@@ -834,84 +834,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"IfcBuildingElement": {
|
||||
"is_abstract": true,
|
||||
"parent": "IfcElement",
|
||||
"attributes": [
|
||||
{
|
||||
"name": "GlobalId",
|
||||
"type": "IfcGloballyUniqueId",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Name",
|
||||
"type": "IfcLabel",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Description",
|
||||
"type": "IfcText",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "ObjectType",
|
||||
"type": "IfcLabel",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Tag",
|
||||
"type": "IfcIdentifier",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
}
|
||||
],
|
||||
"complex_attributes": [
|
||||
{
|
||||
"name": "OwnerHistory",
|
||||
"type": "IfcOwnerHistory"
|
||||
},
|
||||
{
|
||||
"name": "IsNestedBy",
|
||||
"type": "IfcRelNests"
|
||||
},
|
||||
{
|
||||
"name": "IsDecomposedBy",
|
||||
"type": "IfcRelAggregates"
|
||||
},
|
||||
{
|
||||
"name": "IsDeclaredBy",
|
||||
"type": "IfcRelDefinesByObject"
|
||||
},
|
||||
{
|
||||
"name": "IsTypedBy",
|
||||
"type": "IfcRelDefinesByType"
|
||||
},
|
||||
{
|
||||
"name": "IsDefinedBy",
|
||||
"type": "IfcRelDefinesByProperties"
|
||||
},
|
||||
{
|
||||
"name": "ObjectPlacement",
|
||||
"type": "IfcObjectPlacement"
|
||||
},
|
||||
{
|
||||
"name": "Representation",
|
||||
"type": "IfcProductRepresentation"
|
||||
},
|
||||
{
|
||||
"name": "HasProjections",
|
||||
"type": "IfcRelProjectsElement"
|
||||
},
|
||||
{
|
||||
"name": "HasOpenings",
|
||||
"type": "IfcRelVoidsElement"
|
||||
}
|
||||
]
|
||||
},
|
||||
"IfcBuildingElementPart": {
|
||||
"is_abstract": false,
|
||||
"parent": "IfcElementComponent",
|
||||
@@ -3183,84 +3105,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"IfcDistributionElement": {
|
||||
"is_abstract": false,
|
||||
"parent": "IfcElement",
|
||||
"attributes": [
|
||||
{
|
||||
"name": "GlobalId",
|
||||
"type": "IfcGloballyUniqueId",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Name",
|
||||
"type": "IfcLabel",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Description",
|
||||
"type": "IfcText",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "ObjectType",
|
||||
"type": "IfcLabel",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Tag",
|
||||
"type": "IfcIdentifier",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
}
|
||||
],
|
||||
"complex_attributes": [
|
||||
{
|
||||
"name": "OwnerHistory",
|
||||
"type": "IfcOwnerHistory"
|
||||
},
|
||||
{
|
||||
"name": "IsNestedBy",
|
||||
"type": "IfcRelNests"
|
||||
},
|
||||
{
|
||||
"name": "IsDecomposedBy",
|
||||
"type": "IfcRelAggregates"
|
||||
},
|
||||
{
|
||||
"name": "IsDeclaredBy",
|
||||
"type": "IfcRelDefinesByObject"
|
||||
},
|
||||
{
|
||||
"name": "IsTypedBy",
|
||||
"type": "IfcRelDefinesByType"
|
||||
},
|
||||
{
|
||||
"name": "IsDefinedBy",
|
||||
"type": "IfcRelDefinesByProperties"
|
||||
},
|
||||
{
|
||||
"name": "ObjectPlacement",
|
||||
"type": "IfcObjectPlacement"
|
||||
},
|
||||
{
|
||||
"name": "Representation",
|
||||
"type": "IfcProductRepresentation"
|
||||
},
|
||||
{
|
||||
"name": "HasProjections",
|
||||
"type": "IfcRelProjectsElement"
|
||||
},
|
||||
{
|
||||
"name": "HasOpenings",
|
||||
"type": "IfcRelVoidsElement"
|
||||
}
|
||||
]
|
||||
},
|
||||
"IfcDistributionFlowElement": {
|
||||
"is_abstract": false,
|
||||
"parent": "IfcDistributionElement",
|
||||
@@ -4546,84 +4390,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"IfcElementComponent": {
|
||||
"is_abstract": true,
|
||||
"parent": "IfcElement",
|
||||
"attributes": [
|
||||
{
|
||||
"name": "GlobalId",
|
||||
"type": "IfcGloballyUniqueId",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Name",
|
||||
"type": "IfcLabel",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Description",
|
||||
"type": "IfcText",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "ObjectType",
|
||||
"type": "IfcLabel",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Tag",
|
||||
"type": "IfcIdentifier",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
}
|
||||
],
|
||||
"complex_attributes": [
|
||||
{
|
||||
"name": "OwnerHistory",
|
||||
"type": "IfcOwnerHistory"
|
||||
},
|
||||
{
|
||||
"name": "IsNestedBy",
|
||||
"type": "IfcRelNests"
|
||||
},
|
||||
{
|
||||
"name": "IsDecomposedBy",
|
||||
"type": "IfcRelAggregates"
|
||||
},
|
||||
{
|
||||
"name": "IsDeclaredBy",
|
||||
"type": "IfcRelDefinesByObject"
|
||||
},
|
||||
{
|
||||
"name": "IsTypedBy",
|
||||
"type": "IfcRelDefinesByType"
|
||||
},
|
||||
{
|
||||
"name": "IsDefinedBy",
|
||||
"type": "IfcRelDefinesByProperties"
|
||||
},
|
||||
{
|
||||
"name": "ObjectPlacement",
|
||||
"type": "IfcObjectPlacement"
|
||||
},
|
||||
{
|
||||
"name": "Representation",
|
||||
"type": "IfcProductRepresentation"
|
||||
},
|
||||
{
|
||||
"name": "HasProjections",
|
||||
"type": "IfcRelProjectsElement"
|
||||
},
|
||||
{
|
||||
"name": "HasOpenings",
|
||||
"type": "IfcRelVoidsElement"
|
||||
}
|
||||
]
|
||||
},
|
||||
"IfcEnergyConversionDevice": {
|
||||
"is_abstract": false,
|
||||
"parent": "IfcDistributionFlowElement",
|
||||
@@ -5164,240 +4930,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"IfcFeatureElement": {
|
||||
"is_abstract": true,
|
||||
"parent": "IfcElement",
|
||||
"attributes": [
|
||||
{
|
||||
"name": "GlobalId",
|
||||
"type": "IfcGloballyUniqueId",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Name",
|
||||
"type": "IfcLabel",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Description",
|
||||
"type": "IfcText",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "ObjectType",
|
||||
"type": "IfcLabel",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Tag",
|
||||
"type": "IfcIdentifier",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
}
|
||||
],
|
||||
"complex_attributes": [
|
||||
{
|
||||
"name": "OwnerHistory",
|
||||
"type": "IfcOwnerHistory"
|
||||
},
|
||||
{
|
||||
"name": "IsNestedBy",
|
||||
"type": "IfcRelNests"
|
||||
},
|
||||
{
|
||||
"name": "IsDecomposedBy",
|
||||
"type": "IfcRelAggregates"
|
||||
},
|
||||
{
|
||||
"name": "IsDeclaredBy",
|
||||
"type": "IfcRelDefinesByObject"
|
||||
},
|
||||
{
|
||||
"name": "IsTypedBy",
|
||||
"type": "IfcRelDefinesByType"
|
||||
},
|
||||
{
|
||||
"name": "IsDefinedBy",
|
||||
"type": "IfcRelDefinesByProperties"
|
||||
},
|
||||
{
|
||||
"name": "ObjectPlacement",
|
||||
"type": "IfcObjectPlacement"
|
||||
},
|
||||
{
|
||||
"name": "Representation",
|
||||
"type": "IfcProductRepresentation"
|
||||
},
|
||||
{
|
||||
"name": "HasProjections",
|
||||
"type": "IfcRelProjectsElement"
|
||||
},
|
||||
{
|
||||
"name": "HasOpenings",
|
||||
"type": "IfcRelVoidsElement"
|
||||
}
|
||||
]
|
||||
},
|
||||
"IfcFeatureElementAddition": {
|
||||
"is_abstract": true,
|
||||
"parent": "IfcFeatureElement",
|
||||
"attributes": [
|
||||
{
|
||||
"name": "GlobalId",
|
||||
"type": "IfcGloballyUniqueId",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Name",
|
||||
"type": "IfcLabel",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Description",
|
||||
"type": "IfcText",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "ObjectType",
|
||||
"type": "IfcLabel",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Tag",
|
||||
"type": "IfcIdentifier",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
}
|
||||
],
|
||||
"complex_attributes": [
|
||||
{
|
||||
"name": "OwnerHistory",
|
||||
"type": "IfcOwnerHistory"
|
||||
},
|
||||
{
|
||||
"name": "IsNestedBy",
|
||||
"type": "IfcRelNests"
|
||||
},
|
||||
{
|
||||
"name": "IsDecomposedBy",
|
||||
"type": "IfcRelAggregates"
|
||||
},
|
||||
{
|
||||
"name": "IsDeclaredBy",
|
||||
"type": "IfcRelDefinesByObject"
|
||||
},
|
||||
{
|
||||
"name": "IsTypedBy",
|
||||
"type": "IfcRelDefinesByType"
|
||||
},
|
||||
{
|
||||
"name": "IsDefinedBy",
|
||||
"type": "IfcRelDefinesByProperties"
|
||||
},
|
||||
{
|
||||
"name": "ObjectPlacement",
|
||||
"type": "IfcObjectPlacement"
|
||||
},
|
||||
{
|
||||
"name": "Representation",
|
||||
"type": "IfcProductRepresentation"
|
||||
},
|
||||
{
|
||||
"name": "HasProjections",
|
||||
"type": "IfcRelProjectsElement"
|
||||
},
|
||||
{
|
||||
"name": "HasOpenings",
|
||||
"type": "IfcRelVoidsElement"
|
||||
}
|
||||
]
|
||||
},
|
||||
"IfcFeatureElementSubtraction": {
|
||||
"is_abstract": true,
|
||||
"parent": "IfcFeatureElement",
|
||||
"attributes": [
|
||||
{
|
||||
"name": "GlobalId",
|
||||
"type": "IfcGloballyUniqueId",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Name",
|
||||
"type": "IfcLabel",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Description",
|
||||
"type": "IfcText",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "ObjectType",
|
||||
"type": "IfcLabel",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Tag",
|
||||
"type": "IfcIdentifier",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
}
|
||||
],
|
||||
"complex_attributes": [
|
||||
{
|
||||
"name": "OwnerHistory",
|
||||
"type": "IfcOwnerHistory"
|
||||
},
|
||||
{
|
||||
"name": "IsNestedBy",
|
||||
"type": "IfcRelNests"
|
||||
},
|
||||
{
|
||||
"name": "IsDecomposedBy",
|
||||
"type": "IfcRelAggregates"
|
||||
},
|
||||
{
|
||||
"name": "IsDeclaredBy",
|
||||
"type": "IfcRelDefinesByObject"
|
||||
},
|
||||
{
|
||||
"name": "IsTypedBy",
|
||||
"type": "IfcRelDefinesByType"
|
||||
},
|
||||
{
|
||||
"name": "IsDefinedBy",
|
||||
"type": "IfcRelDefinesByProperties"
|
||||
},
|
||||
{
|
||||
"name": "ObjectPlacement",
|
||||
"type": "IfcObjectPlacement"
|
||||
},
|
||||
{
|
||||
"name": "Representation",
|
||||
"type": "IfcProductRepresentation"
|
||||
},
|
||||
{
|
||||
"name": "HasProjections",
|
||||
"type": "IfcRelProjectsElement"
|
||||
},
|
||||
{
|
||||
"name": "HasOpenings",
|
||||
"type": "IfcRelVoidsElement"
|
||||
}
|
||||
]
|
||||
},
|
||||
"IfcFilter": {
|
||||
"is_abstract": false,
|
||||
"parent": "IfcFlowTreatmentDevice",
|
||||
@@ -9225,90 +8757,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"IfcReinforcingElement": {
|
||||
"is_abstract": true,
|
||||
"parent": "IfcElementComponent",
|
||||
"attributes": [
|
||||
{
|
||||
"name": "GlobalId",
|
||||
"type": "IfcGloballyUniqueId",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Name",
|
||||
"type": "IfcLabel",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Description",
|
||||
"type": "IfcText",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "ObjectType",
|
||||
"type": "IfcLabel",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "Tag",
|
||||
"type": "IfcIdentifier",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
},
|
||||
{
|
||||
"name": "SteelGrade",
|
||||
"type": "IfcLabel",
|
||||
"is_enum": false,
|
||||
"enum_values": []
|
||||
}
|
||||
],
|
||||
"complex_attributes": [
|
||||
{
|
||||
"name": "OwnerHistory",
|
||||
"type": "IfcOwnerHistory"
|
||||
},
|
||||
{
|
||||
"name": "IsNestedBy",
|
||||
"type": "IfcRelNests"
|
||||
},
|
||||
{
|
||||
"name": "IsDecomposedBy",
|
||||
"type": "IfcRelAggregates"
|
||||
},
|
||||
{
|
||||
"name": "IsDeclaredBy",
|
||||
"type": "IfcRelDefinesByObject"
|
||||
},
|
||||
{
|
||||
"name": "IsTypedBy",
|
||||
"type": "IfcRelDefinesByType"
|
||||
},
|
||||
{
|
||||
"name": "IsDefinedBy",
|
||||
"type": "IfcRelDefinesByProperties"
|
||||
},
|
||||
{
|
||||
"name": "ObjectPlacement",
|
||||
"type": "IfcObjectPlacement"
|
||||
},
|
||||
{
|
||||
"name": "Representation",
|
||||
"type": "IfcProductRepresentation"
|
||||
},
|
||||
{
|
||||
"name": "HasProjections",
|
||||
"type": "IfcRelProjectsElement"
|
||||
},
|
||||
{
|
||||
"name": "HasOpenings",
|
||||
"type": "IfcRelVoidsElement"
|
||||
}
|
||||
]
|
||||
},
|
||||
"IfcReinforcingMesh": {
|
||||
"is_abstract": false,
|
||||
"parent": "IfcReinforcingElement",
|
||||
@@ -12671,4 +12119,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user