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

yang686526 2009-05-07 12:01 PM

【转帖】putting in order entities
 
putting in order entities.
putting in order entities.
hi,
i would like to put in order entities (first hatch entities).
how can i make it?
thank you
if you mean drawing order use oddbsortentstable class (an object returned by oddbblocktablerecord::getsortentstable()).
sergey slezkin
sort entities
hi,
i would like to export hatch entities first. for example, if i have a text on a hatch solid then i want to draw first hatch solid and text after.
thank you.
use oddbsortentstable methods.
sergey slezkin
quote:
originally posted by gabriel
hi,
i would like to export hatch entities first. for example, if i have a text on a hatch solid then i want to draw first hatch solid and text after.
thank you.
iterate through the collection, build a sortorder- objectid pairs, and sort the list by the sortorder.
for example sortorder = 0 for hatch, = 1 for everything else.


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