几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】dxfdwg file reading when dwgcodepage is undefined (http://www.dimcax.com/hust/showthread.php?t=16020)

yang686526 2009-05-05 08:53 AM

【转帖】dxfdwg file reading when dwgcodepage is undefined
 
dxf/dwg file reading when &dwgcodepage is undefined
dxf/dwg file reading when $dwgcodepage is undefined
i work on shifts from dd1.14.02 to dd2.2.0 now.
i found the problem occurring in reading the text.
?when font used bigfont. (bigfont.shx, extfont.shx etc)
?$dwgcodepage is undefined.
(the problem occurs when it meets both requirements )
however, it was a no problem in dd1.14.02.
in dd1.14.02, it seems to recover undefined dwgcodepage as cp_ansi_932.
(i am working in japan, the value of getacp() is 932 )
however, the recovery processing of dwgcodepage seems to have disappeared in dd2.2.0.
(or default value setup)
it can be confirmed by using odamfcapp.exe.
dd1.14.02 -> 38(cp_ansi_932)
dd2.2.0 -> 0(cp_undefined)
( oddbdatabase::getdwgcodepage() is also the same )
please teach the method of doing the same operation as dd1.14.02.
(or, please teach the reading method of assuming cp_ansi_932 to be a default
value. )
r12dxf output from autocad2007 is appended.
($dwgcodepage of r12dxf that autocad output is undefined.)
i am using only bigfont.shx though it looks like "can't display big-font text (hangul) in 2.2.0 version. please help me".
attached files


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