Hello all
is there any example of how to get properties of selected object, like length/volume/area?
Thank you.
Hello all
is there any example of how to get properties of selected object, like length/volume/area?
Thank you.
Hi Zamik,
Which BIM 360 product and API are you using?
Sounds like Forge Viewer? But want to make sure.
Hi Zamik,
Which BIM 360 product and API are you using?
Sounds like Forge Viewer? But want to make sure.
Yes, correct.
Hi Zamik,
Try something like:
viewer.getSelection()
to get selected objects. (Let's say 2210)
viewer.getProperties([2210], function(elem) {console.log(elem)})
to get full properties.
viewer.model.getBulkProperties([2210], ["Length", "Volume", "Area"], function(elems) {console.log(elems)})
to get a partial list.
Hi Zamik,
Try something like:
viewer.getSelection()
to get selected objects. (Let's say 2210)
viewer.getProperties([2210], function(elem) {console.log(elem)})
to get full properties.
viewer.model.getBulkProperties([2210], ["Length", "Volume", "Area"], function(elems) {console.log(elems)})
to get a partial list.
Can't find what you're looking for? Ask the community or share your knowledge.