I am currently working on a project where I upload a Revit model to ACC and fetch properties using the AEC Data Model API. My primary goal is to retrieve elements along with their associated material and mass.
Regarding material:
Regarding mass:
Below is the query I am currently using. Please let me know if it can be modified to retrieve the above details.
query GetWallsAndMaterialsAndFinishes($elementGroupId: ID!, $elementsfilter: String!) {
walls: elementsByElementGroup(
elementGroupId: $elementGroupId
filter: { query: $elementsfilter }
pagination: { limit: 500 }
) {
results {
id
name
alternativeIdentifiers{
revitElementId
externalElementId
}
properties (filter: { names: ["Volume"] }){
results {
name
value
}
}
# Type reference for the wall
references(filter: { names: ["Type"] }) {
results {
value {
references(filter: { names: [
"Structural Material",
"Finish Material",
"Material",
"Interior Finish",
"Exterior Finish",
"Material Door",
"Material Frame",
"Material Ironmongery"
]}) {
results {
value {
name
}
}
}
}
}
}
}
}
}
Variable:
{
"elementGroupId": {modelElemnetGroupId},
"elementsfilter": "(property.name.category=='Walls' or property.name.category=='Doors' or property.name.category=='Roofs') and 'property.name.Element Context'==Instance"
}
Any help is appreciated !
I got the confirmation from our AEC DM team. The compound structure for walls, roofs are not yet supported in AECDM because It is not a typical parameter.
But we are interested to hear more from you, my colleague should contact you directly for details. Thanks.