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

clipping blockreference problem.
clipping blockreference problem.
for the attached drawing i apply:
code:

oddbdatabaseptr pdatabase = ...;

oddbblocktablerecordptr pmodelspace = pdatabase->getmodelspaceid().openobject();
oddbobjectiteratorptr pit = pmodelspace->newiterator();
oddbblockreferenceptr pblockreference = oddbblockreferenceptr();
for (pit->start(); !pit->done(); pit->step()){
oddbentityptr pent = pit->entity();
if ( pent->isa() == oddbblockreference::desc() ){
pblockreference = pent;
}
}
oddbspatialfilterptr pfilt = oddbspatialfilter::createobject();
odgepoint2darray points;
points.clear();
points.push_back(odgepoint2d(7311.9157 , -182.7977));
points.push_back(odgepoint2d(-5788.6003 , 3351.2947));
points.push_back(odgepoint2d(-6946.3186 , -2741.9681));
points.push_back(odgepoint2d(7311.9157 , -182.7977));

pfilt->setdefinition(points, odgematrix3d::kidentity,
oddb_infinite_xclip_depth, oddb_infinite_xclip_depth, true);

oddbindexfiltermanager::addfilter(pblockreference,pfilt);
the system crashes.
please check this!
thanks,
mihail.
attached files
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)