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

yang686526 2009-05-04 07:52 PM

【转帖】display order
 
display order
display order
how can i programatically:
a) select all hatch objects in the drawing and
b) send them to the back of the display order?
to get all hatch objects you can iterate through the block and call iskindof() for each entity or use oddbsset class.
to send all hatches to the back use oddbsortentstable::movetobottom().
sergey slezkin
well, since i am creating these hatch objects, rather than iterate to find them, can i automatically set it to the back then? given the oddbobjectid for the hatch i have just added into the model space block, can you show me in code how to use the sortents table to move it to the bottom? if i can move each hatch to the bottom as i add them into the database, it should acheive what i wanted.
use oddbblocktablerecord::getsortentstable()
and
oddbsortentstable::movetobelow()
sergey slezkin


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