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

yang686526 2009-05-07 03:44 PM

【转帖】settextat Doesnt Work For Linetype
 
settextat doesn't work for linetype
settextat doesn't work for linetype
oddblinetypetablerecord::settextat doesn't work.
build odwriteex sample program (tried borland and visual.net), and create
.dxf or .dwg files. the linetype "hw_oda" has the shape #s in it, but not
the text.
reading in a file with text in a linetype works fine (textat).
i can reproduce the problem only with dwg file, dxf is ok.
it's possible to bypass dd bug resulting in incorrect dwg by removing setshapenumberat() call just before settextat(). this call makes no sense because a dash can have a shape or a text string but not both of them.
but only one dash with text string can be saved by dd to dwg untill the bug is fixed.
sergey slezkin


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