如何在2D中使用Dbid获取位置 [英] How to get location with dbid in 2D

查看:60
本文介绍了如何在2D中使用Dbid获取位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在2D查看器中使用dbid获取对象的位置(x和y)?带有dbid的对象的属性如何? 2D文件的格式为dwg.

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.

推荐答案

带有dbid的对象的属性如何?

What about properties of object with dbid?

您可以使用getSelection()方法,然后使用getProperties(dbid, onSuccessCallback, onErrorCallback) 获取ID的属性.返回属性后,该方法将引发onPropertiesReady事件.

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.

您可以在此处查看文档. https://developer.autodesk.com/en/docs/viewer/v2/reference/javascript/viewer3d/

You can check the Documentation here. https://developer.autodesk.com/en/docs/viewer/v2/reference/javascript/viewer3d/

这篇关于如何在2D中使用Dbid获取位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆