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

yang686526 2009-05-04 03:42 PM

【转帖】add entities to a specific position
 
add entities to a specific position
add entities to a specific position
in odt exist a function "adaddentitytolistafter" .
how can i do this with dgwdirect ?
thanks in advanced.
in dd like in objectarx an entity can be added only to the end of block. surely except for subentities which are added to their parent like vertices to 2d or 3d polyline, attributes to block reference etc.
an entity already appended to the block can be replaced by handoverto().
sergey slezkin
my intention is to store hatch entities at the beginning of the block, unfortunatly the objects i get are unsorted.
autocad's docs say that if you want to get a specific drawing order you need to use sortentstable.
sergey slezkin
sortentstable for blockdefinitions available in ac2004, but not in older versions.
does dwgdirect sort the blockdefinition entities before writing as dwg14 or dwg2000 ?
sortentstable was introduced in r14 but for some reason its api was not included into public arx headers.
while saving to minor versions dd ignores it (probably this should be changed).
sergey slezkin


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