几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(VB.NET/C#) (http://www.dimcax.com/hust/forumdisplay.php?f=176)
-   -   选择图形中的对象 (http://www.dimcax.com/hust/showthread.php?t=10153)

yang686526 2009-04-22 03:18 PM

选择图形中的对象
 
选择图形中的对象
www.dimcax.com
选择图形中的对象
问题:想让程序选择图形中的对象?虽然可以通过使用selectionfilter 和highlight 方法来实现。但如果是手动选择对象的时候怎样使顶点高亮?答案:可以使用acmgdinternal.dll中的autodesk.autocad.internal命名空间中的utils类的selectobjects()方法实现。例子如下: editor ed = acadapp.documentmanager.mdiactivedocument.editor promptselectionresult result = ed.getselection(); if( result.status == promptstatus.ok && result.value.count > 0 ) { objectid[] ids = result.value.getobjectids(); autodesk.autocad.internal.utils.selectobjects(ids); }
顶点高亮什么意思?不是很明白这个功能的意义


所有的时间均为北京时间。 现在的时间是 12:02 AM.