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