BIMserver
BIMserver copied to clipboard
Link includes in query language
It would be useful to have the ability to link includes from within includes (but not on the fields).
For example the following could be simplified:
Now:
"IfcOpenShell": {
"type": "IfcOpenShell",
"field": "CfsFaces",
"include": {
"type": "IfcFace",
"field": "Bounds",
"include": {
"type": "IfcFaceBound",
"field": "Bound",
"include": {
"type": "IfcPolyLoop",
"field": "Polygon"
}
}
}
},
"IfcClosedShell": {
"type": "IfcClosedShell",
"field": "CfsFaces",
"include": {
"type": "IfcFace",
"field": "Bounds",
"include": {
"type": "IfcFaceBound",
"field": "Bound",
"include": {
"type": "IfcPolyLoop",
"field": "Polygon"
}
}
}
}
After:
"IfcConnectedFaceSet": {
"type": "IfcConnectedFaceSet",
"field": "CfsFaces",
"include": {
"type": "IfcFace",
"field": "Bounds",
"include": {
"type": "IfcFaceBound",
"field": "Bound",
"include": {
"type": "IfcPolyLoop",
"field": "Polygon"
}
}
}
},
"IfcOpenShell": {
"type": "IfcOpenShell",
"superinclude": "IfcConnectedFaceSet"
},
"IfcClosedShell": {
"type": "IfcClosedShell",
"superinclude": "IfcConnectedFaceSet"
}
Obviously in this example the types could have been combined in "IfcConnectedFaceSet" anyways, but there are also examples where you'd want to simplify the queries but only link to 1 of x subtypes.