mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Allow export of positioning elements (only IfcGrid for now) See #911
This commit is contained in:
@@ -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": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user