高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】dimension changes in dd1.13.02
dimension changes in dd1.13.02
dimension changes in dd1.13.02
hi,
i upgraded my application from dd1.11.01 to dd1.13.02, but i found some changes in dimension. i want to attach some files but i can't, there has some wrongs in script.
code-snippet:
oddbrotateddimensionptr protdim = oddbrotateddimension::createobject( );
protdim->setdimblockid( dimblockid );
// -----write dimension entity (in main section)----
// data
protdim->setxline1point( ...);
protdim->setxline2point( ...);
protdim->setdimlinepoint(... );
protdim->setrotation( ... );
// text rotation
protdim->settextrotation( 0 );
// oblique angle
protdim->setoblique( ... );
protdim->setdimensiontext( textstr.getbuffer(textstr.getlength()+1) );
// set initial location of text .
protdim->settextposition( odgepoint3d(textpt[0],textpt[1],textpt[2]) );
protdim->settextattachment(oddbmtext::kmiddlecenter );
protdim->setdimensionstyle( pdimstylerec->objectid() );
protdim->setlayer( layerid );
pbtrm->appendoddbentity( protdim );
protdim->recordgraphicsmodified(false);
in the code, i called oddbblocktablerecord::appendoddbentity before calling
oddbrotateddimension::recordgraphicsmodified. is this calling sequence right?
where is wrong in these code?
any help appreciated.
|