autodesk forge – Data Exchange – Change Units to Imperial For Element Parameters From GraphQL
When I use Autodesk’s Data Exchange graphql API to get properties from objects in a Data Exchange, it uses metric units by default. Can I add something to the query to have the API return values in Imperial units?
Here is an example of a graphql query I am using. Currently, parameters like “Length” are being returned in Meters.
query getQuantityTakeoff ($exchangeId:ID!) {
exchange(exchangeId: $exchangeId) {
id
name
version {
versionNumber
}
elements {
results {
id
name
properties {
results {
name
value
propertyDefinition {
description
specification
units
}
}
}
}
}
}
}
And here is an example of what I am being returns
...
"name": "Volume",
"value": 5.663369318399997,
"propertyDefinition": {
"description": "Length x Cross Section Area",
"specification": "Volume",
"units": "Cubic meters"
}
...
Read more here: Source link
