查看单个帖子
旧 2009-05-06, 03:22 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】how to use oddbhatchexplode90 properly

how to use oddbhatch::explode() properly ??
how to use oddbhatch::explode() properly ??
hello.
i try to divide hatch object for simpler objects. i found oddbhatch::explode. unfortunately this method generates unknown expectation (not oderror) maybe i do something not properly. please give me some advice. following i present this code
try {
oddbobjectidarray loopids;
oddbhatchptr phatch = oddbhatch::createobject();
pblock->appendoddbentity(phatch);
phatch->setassociative(false);
phatch->setpattern(oddbhatch::kpredefined, "solid");
phatch->sethatchstyle(oddbhatch::knormal);
loopids.append(id);
phatch->appendloop(oddbhatch::kpolyline, loopids);
oddbvoidptrarray pvoidarray;
//vvvvvvvvvvvvvvvvvvvvvvvvvvv
phatch->explode(pvoidarray); //throwing unknown exception
//^^^^^^^^^^^^^^^^^^^^^^^^^^^
oddbvoidptrarray::iterator iter = pvoidarray.begin();
oddbvoidptrarray::iterator iterend = pvoidarray.end();
//厖厖厖厖厖
}
catch (oderror& e)
{
//.............
}
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)