Joni Turunen
Joni Turunen

Reputation: 137

How to get location with dbid in 2D

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.

Upvotes: 0

Views: 423

Answers (1)

Jaime Rosales
Jaime Rosales

Reputation: 1288

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/

Upvotes: 1

Related Questions