高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】position of dimension te
position of dimension text
position of dimension text
i tried to write a dimension that changed text position.
i use dd 1.12.04.
odrxobjectimpl<myservices> svcs;
oddbdatabaseptr pdb = svcs.createdatabase( true, oddb::kmetric );
...
oddbrotateddimensionptr pent = oddbrotateddimension::createobject();
pent->setdatabasedefaults( pdb );
pent->setdimensionstyle( pdb->getdimstylestandardid() );
pent->setdimlinepoint( odgepoint3d(50, 30, 0) );
pent->setxline1point( odgepoint3d(0, 0, 0) );
pent->setxline2point( odgepoint3d(50, 0, 0) );
pent->settextposition( odgepoint3d(15, 30, 0) );
pent->usesettextposition();
when opening in autocad, there was a problem.(broken line)
but when editing in autocad, there was a normalization.
(ex. changing color)
is this a problem of recomputedimblock() ?
here a drawing.
attached images
yes, the dimension block was incorrectly created by recomputedimblock() and recalculated by autocad.
sergey slezkin
is this dd bug ?
or a method ?
recomputedimblock() is a method.
it creates incorrect dimension block in your case. this is dd bug.
sergey slezkin
|