几何尺寸与公差论坛------致力于产品几何量公差标准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 Objects (http://www.dimcax.com/hust/showthread.php?t=18526)

yang686526 2009-05-07 03:34 PM

【转帖】selecting Objects
 
selecting objects?
selecting objects?
what is the correct procedure for displaying entities as "selected"?
atm i have a selection reactor function which gets called for every selected entity:
void selected(const odgsdrawabledesc& drawabledesc)
{
oddbobjectid id(drawabledesc.persistid);
oddbentityptr pent = id.safeopenobject(oddb::kforwrite);
trace2("[%s]:<%s>\n", id.gethandle().ascii().c_str(), pent->isa()->name());
pent->setcolorindex(5);
}
however, how do i mark these entities so that they are rendered as "selected"?
thanks
james

currently highlighting functionality is not implemented. it's one of our priorities after cleaning up ac2004 support.
sergey slezkin


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