How can I get location (x and y) of object with dbid in 2D viewer? What about properties of object with dbid? The format of the 2D file is dwg.
Asked
Active
Viewed 384 times
1 Answers
1
What about properties of object with dbid?
You can use getSelection() method followed by getProperties(dbid, onSuccessCallback, onErrorCallback)
which
Gets the properties for an ID. Once the properties are returned, the method raises a onPropertiesReady event.
You can check the Documentation here. https://developer.autodesk.com/en/docs/viewer/v2/reference/javascript/viewer3d/

halfer
- 19,824
- 17
- 99
- 186

Jaime Rosales
- 1,106
- 1
- 6
- 8