Hi,
I’ve been trying to make some quantities take offs and I’m struggling in finding the Archicad (27) Wall type Element ID in the PowerQuery and Spekcle GraphQL API, does anybody here knows which branch or hierarchy can I find this ID?
clrkng
(Claire Kuang)
19 June 2025 14:42
2
Hi @Ignacio_Diaz ,
Currently it appears that Archicad is sending the ElementId
that you see in the name
field of the ArchicadObject
class:
We may also add this as a property under the properties
field in the future.
1 Like
jonathon
(Jonathon)
19 June 2025 14:43
3
I can search for the element you highlighted with GraphQL without error
Query:
query ExampleQuery(
$objectId: String!
$projectId: String!
$select: [String]
$query: [JSONObject!]
) {
project(id: $projectId) {
object(id: $objectId) {
children(select: $select, query: $query) {
objects {
data
}
}
id
}
}
}
Variables:
{
"objectId": "e88fe1abbad11d125a64e97324049cda",
"projectId": "f6c90962ed",
"select": [
"name","properties"
],
"query": [{
"field":"name",
"operator": "=",
"value": "MHA-2P-004"
}]
}
Object found:
{
"data": {
"project": {
"object": {
"children": {
"objects": [
{
"data": {
"name": "MHA-2P-004",
"properties": {
"IFC Properties": {
"Pset_WallCommon": {
"IsExternal": "True",
"LoadBearing": "True"
},
"AC_Pset_RenovationAndPhasing": {
"Renovation Status": "New"
}
},
"Element Properties": {
"Classifications": {
"Clasificacion Itemizado DAC - 0": "OG.HORM.5",
"Clasificación de ARCHICAD - v 2.0": "Muro"
},
"Dimensional Properties": {
"Muro": {
"Longitud Media del Muro": "2.100000",
"Ancho Muro (Archicad 20)": "0.230000",
"Altura Muro (Archicad 20)": "3.450000"
}
}
},
"Composite Structure": {
"05 - Enlucido - Yeso": {
"units": "Meter",
"volume": 0.03052762796227786,
"material": "Enlucido - Yeso",
"thickness": 0.005
},
I recommend also that you use our newer GraphQL Apollo Server
2 Likes
As @clrkng already said, the id is under the name parameter, because the id in Archicad is not unique, and you can also change it.
Thanks, that sure will be great!
Thanks @jonathon , this really helps, I’m new at this so probably I’m doing something wrong. I’ll study your Query and try again.
Thanks @David_Kekesi , is a good point, so it’s not a “real” ID.
No, it’s not. If you ever need a real unique id you can use the applicationId. That’s the element guid from Archicad.
1 Like