查看单个帖子
旧 2009-05-04, 03:15 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】a question about the function void oddbentityrecordgraphi

a question about the function: void oddbentity::recordgraphi
a question about the function: void oddbentity::recordgraphicsmodified()
hi, i am developing a program using dwgdirect1.12.04. when i use the program export a dwg file, the dimension of exported dwg file didn't display correctly. i use following code to export a dimension:
oddbdimensionptr ptroddbdimension = poddbentity;
cdimension *pcaxdimension = (cdimension*)pcaxentity;
//block id
odgepoint3d odporigin(0, 0, 0);
oddbobjectid blockrecordid = createblockrecord(pcaxdimension->childlist, odporigin, true);
if ( blockrecordid.isnull() )
return false;
ptroddbdimension->setdimblockid(blockrecordid);
......
//prevent recompute
ptroddbdimension->recordgraphicsmodified(false);
i use the function "recordgraphicsmodified(false)" to prevent the dimension from be recomputed, so that the dimension are displayed like the block create ahead. but it seems that recordgraphicsmodified() doesn't work, the dimension is recomputed, and the display doesn't like block.compare with dwgdriect1.12.04, the function "recordgraphicsmodified" of dwgdriect1.11 works well!
i failed to reproduce the situation in odwriteex sample. are you sure you do not modify any dimension properties after calling recordgraphicsmodified(false)?
if yes could you prepare a piece of code to reproduce the situation in one of our samples (odwriteex) for example?
sergey slezkin
quote:
originally posted by sergey slezkin
i failed to reproduce the situation in odwriteex sample. are you sure you do not modify any dimension properties after calling recordgraphicsmodified(false)?
if yes could you prepare a piece of code to reproduce the situation in one of our samples (odwriteex) for example?
thanks, i have used recordgraphicsmodified(false) after appendoddbentity, it works now!
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)