Allow export of positioning elements (only IfcGrid for now) See #911

This commit is contained in:
Dion Moult
2020-07-12 10:19:22 +10:00
parent 4015c5b5b2
commit 6b07aeb703
4 changed files with 81 additions and 1 deletions
@@ -130,6 +130,7 @@ def getIfcProducts(self, context):
'IfcSpatialElement',
'IfcGroup',
'IfcStructural',
'IfcPositioningElement',
'IfcContext',
'IfcAnnotation']])
return products_enum
@@ -17,6 +17,7 @@ class IfcSchema():
'IfcSpatialElement',
'IfcGroup',
'IfcStructural',
'IfcPositioningElement',
'IfcMaterialDefinition',
'IfcParameterizedProfileDef',
'IfcBoundaryCondition',
@@ -0,0 +1,77 @@
{
"IfcGrid": {
"is_abstract": false,
"parent": "IfcProduct",
"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": "PredefinedType",
"type": "IfcGridTypeEnum",
"is_enum": true,
"enum_values": [
"RECTANGULAR",
"RADIAL",
"TRIANGULAR",
"IRREGULAR",
"USERDEFINED",
"NOTDEFINED"
]
}
],
"complex_attributes": [
{
"name": "OwnerHistory",
"type": "IfcOwnerHistory",
"is_select": false,
"select_types": []
},
{
"name": "IsDeclaredBy",
"type": "IfcRelDefinesByObject",
"is_select": false,
"select_types": []
},
{
"name": "IsTypedBy",
"type": "IfcRelDefinesByType",
"is_select": false,
"select_types": []
},
{
"name": "ObjectPlacement",
"type": "IfcObjectPlacement",
"is_select": false,
"select_types": []
},
{
"name": "Representation",
"type": "IfcProductRepresentation",
"is_select": false,
"select_types": []
}
]
}
}
+2 -1
View File
@@ -157,7 +157,8 @@ filename_filters = {
'IfcParameterizedProfileDef_IFC4.json': ['IfcParameterizedProfileDef'],
'IfcBoundaryCondition_IFC4.json': ['IfcBoundaryCondition'],
'IfcElementType_IFC4.json': ['IfcElementType', 'IfcSpatialElementType'],
'IfcAnnotation_IFC4.json': ['IfcAnnotation']
'IfcAnnotation_IFC4.json': ['IfcAnnotation'],
'IfcPositioningElement_IFC4.json': ['IfcGrid'] # IfcPositioningElement in the future
}
for filename, filters in filename_filters.items():