几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】missing highlight on newly created objects (http://www.dimcax.com/hust/showthread.php?t=17222)

yang686526 2009-05-06 05:54 PM

【转帖】missing highlight on newly created objects
 
missing highlight on newly created objects
missing highlight on newly created objects
hi,
i'm having some trouble with the oddbentity::highlight(..) function - it doesn't seem to work on objects which has been recently created. example:
code:
oddbobjectid id = pdb->insert(..);
oddbentityptr pent = id.safeopenobject(oddb::kforwrite);
pent->highlight(true); // highlight entity
playout->update(); // update view
the above code will not highlight the entity. a workaround is to update the view once before highlighting:
code:
oddbobjectid id = pdb->insert(..);
playout->update(); // update view
oddbentityptr pent = id.safeopenobject(oddb::kforwrite);
pent->highlight(true); // highlight entity
playout->update(); // update view again to show highlighted object
i am assuming this is a bug. the workaround is ok, but the extra view update leads to some unnecessary code/extra steps, so a fix would be nice.
this has been tested on v2.3.0 and 2.3.1 libraries (not recompiled for 2.3.1), but i think it has like this at least since v2.2.
hi,
please enter a bug to our bugzilla at (instructions for bug entry are available on this page).
assign it on .
hi,
a bug report has been submitted.
ok, thanks!


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