高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】problem with rotated dimension
problem with rotated dimension
problem with rotated dimension
dear forum,
i added in the method dbfiller::adddimensions, in the odwriteex\dbfiller.cpp file, the following code :
oddbrotateddimensionptr dwgdim = oddbrotateddimension::createobject() ;
dwgdim->setrotation(1.5707963267949) ;
dwgdim->setdimlinepoint(odgepoint3d(58.,21.,0.)) ;
dwgdim->setxline1point(odgepoint3d(75.,21.,0.)) ;
dwgdim->setxline2point(odgepoint3d(99.,36.,0.)) ;
dwgdim->usesettextposition();
dwgdim->settextposition(odgepoint3d(56.0,30.,0.)) ;
pblock->appendoddbentity(dwgdim);
i attached the generated writen.dwg.
when i load it in autocad 2004, the text of this new rotated dimension is "5.8409" which is wrong.
when i move this text, its content immediately changes to the right value of 15.
could you please explain me this strange phenomenon ?
my dwgdirect version is 1.14.1.0
thank you.
attached files
the correct dimlinepoint is odgepoint3d(56.,36.,0.) for your dimension.
the dwgdirect (as acad) corrects wrong value but now the right dimension may be got by call dwgdim->recomputedimblock() twice. we try to fix this problem in future.
best regards,
sergey z.
|