几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】problem about prevent dim block recompute (http://www.dimcax.com/hust/showthread.php?t=17998)

yang686526 2009-05-06 10:35 PM

【转帖】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!


所有的时间均为北京时间。 现在的时间是 08:17 PM.