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

yang686526 2009-05-07 06:33 PM

【转帖】viewport Precision
 
viewport precision
viewport precision
i'm creating a viewport like this
code:
oddbviewportptr vp = oddbviewport::createobject();
vp->setwidth ( 125 );
vp->setheight( 75 );
vp->setviewcenter ( odgepoint2d( 600873.98 , 6724552.48 ) );this works fine, except that the origin is truncated to (600873,6724552) in the resulting dxf drawing. is this a matter of double/float precision?
it turns out that dwgdirect uses my danish locale causing decimal point to be komma instead of dot. is this a bug, or is this allowed in dxf - autocad 2006 does not accept it!
which dwgdirect version do you use? for years dd does not use locale for conversions.
sergey slezkin


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