查看单个帖子
旧 2009-05-04, 07:52 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)