查看单个帖子
旧 2009-05-06, 10:35 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】problem about prevent dim block recompute

problem about prevent dim block recompute
problem about prevent dim block recompute
hi, i use the following code to prevent oddbdimenison's object from being recomputed when export dwg file.
//export
......
oddbblocktablerecordptr ptroddbblock = modelspaceid.safeopenobject(oddb::kforwrite);
......
......
ptroddbentity = oddbrotateddimension::createobject();
//set dimension data
.......
ptroddbblock->appendoddbentity(ptroddbentity);
ptroddbentity->recordgraphicsmodified(false);
...
but, there are some problem, it always is that the last dimension didn't recompute, the other dimensions are recomputed! (see the attached picture, the orgin.jpg is the origin file's image, the exporterror1.jpg and exporterror2.jpg are exported file's image.)
why?
attached images
hi,
this is dd bug in notification processing. we'll fix it in a next maintenance release.
as workaround you can use next code before appending new dimensions to database (or right after dd initialization).
code:
oddbdimension::desc()->delx(oddbevalwatcherpe::desc());
regards,
sergey vishnevetsky
thanks
best regards!
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)