|
高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】求助:画spline线条出错。
求助:画spline线条出错。
求助:画spline线条出错。
程序代码如下:
void createspline()
{
acgepoint3d point(0,0,0);
acgepoint3darray asd;
acdbobjectid splineid;
acdbblocktablerecord *pblocktablerecord;
acdbblocktable *pblocktable;
asd.append(point);
point.set(10,10,0);
asd.append(point);
point.set(20,-2,0);
asd.append(point);
point.set(30,5,0);
asd.append(point);
acdbspline *pspline=new acdbspline(asd,4,0.0);
adesk::boolean x=pspline->isnull();
acdbhostapplicationservices()->workingdatabase()->getsymboltable(pblocktable,acdb::kforwrite);
pblocktable->getat(acdb_model_space,pblocktablerecord,acdb::kforwrite);
acad::errorstatus test=pblocktablerecord->appendacdbentity(splineid,pspline);
pblocktable->close();
pblocktablerecord->close();
pspline->close();
delete pspline;
}
运行出现如下错误
此主题相关图片如下:
|