几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】selecting Entities Within A Block Record (http://www.dimcax.com/hust/showthread.php?t=18521)

yang686526 2009-05-07 03:33 PM

【转帖】selecting Entities Within A Block Record
 
selecting entities within a block record
selecting entities within a block record
hi,
i have a block record which looks something like this (pseudo):
code:
dbblocktablerecord {
dbpolyline
dbblockreference
dbblockreference
...
}
in model space i have a dbblockreference to this block record, hence regular interaction (mouse select/drag) works fine.
however, i am trying to select specific entities (block references) within the dbblocktablerecord by screen coordinates (pick by mouse interaction). i tried a few methods which either didn't work or turned out too complex. (for example, i tried assigning every internal block reference to a special layer, and then using a selection filter. since select() probably only iterates model space, this didn't seem to work.)
any suggestions on how this can be accomplished in a tidy fashion?
subentity selection is not yet supported out-of-the-box.
subentity hilight is not supported at all.
selection may be implemented on the client side, but it is rather non-trivial. (you have to apply all transforms manually)
perhaps subentity selection will be added in the next release, if it will be stable enough. (it is already implemented internally)
vladimir


所有的时间均为北京时间。 现在的时间是 08:53 PM.