How to get location with dbid in 2D

风格不统一 提交于 2019-12-12 01:26:54

问题


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.


回答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/



来源:https://stackoverflow.com/questions/42018613/how-to-get-location-with-dbid-in-2d

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!