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

yang686526 2009-05-05 10:28 AM

【转帖】export xref blocks to dxfdwg
 
export xref blocks to dxf/dwg
export xref blocks to dxf/dwg
my application generates dxf/dwg drawing. the drawing has xref block. i use the oddbblocktablerecord::setpathname(...) function to define the xref. when i load the created drawing into autocad it don't display the xref blocks.
analysing the dxf file i have found that groupcode 70 in a block definition is 0. after i manually set it to 100, autocad begin to display the drawing correctly.
what dwgdirect function i have to call in order to set the xref bit in the groupcode 70 ? i don't find any in the doc
see xrefman.h
oddbxrefmanext::addnewxrefdefblock() function.
sergey slezkin
thank you for the help, it works.


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