查看单个帖子
旧 2009-05-07, 06:33 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)