高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|