几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】oddbaligneddimension error (http://www.dimcax.com/hust/showthread.php?t=17465)

yang686526 2009-05-06 07:21 PM

【转帖】oddbaligneddimension error
 
oddbaligneddimension error
oddbaligneddimension error
the following code
try
{
oddbrotateddimensionptr pdim = oddbrotateddimension::createobject();
allargp->pblock->appendoddbentity(pdim);
pdim->setdatabasedefaults(pdb);
odgepoint3d p;
pengine->sto_wcoord(dimp->x1, dimp->y1, &p.x, &p.y);
pdim->setxline1point(p);
pengine->sto_wcoord(dimp->x2, dimp->y2, &p.x, &p.y);
pdim->setxline2point(p);
pengine->sto_wcoord(dimp->x3, dimp->y3, &p.x, &p.y);
dim->usedefaulttextposition();
dim->createextensiondictionary();
}
catch(oderror& e))
{
afxmessagebox(e.description());
}
results in the following error message:
"object of class acdbrotateddimension can't be cast to oddbdimensionrecomputepe (probably appropriate extension is not registered)". the program then crashes after this.
any ideas ? is this related to the recomputedimblock() dd bug in build 1.14.01 or am i way of the mark ?
regards
james
see release notes. dimension block recomputing functionality is moved to separate module. your application can use dimension recomputing provided by oda (available with sources in extensions folder), substitute your own module or if your application needs no dimension block calculating/recomputing you can register dummyrecomputedimblock module.
if you use dll version you simply need to put recomputedimblock.drx to your application's folder. it can be dummy or "normal" module.
sergey slezkin


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