查看单个帖子
旧 2009-04-18, 05:22 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】求助:画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;
}
运行出现如下错误

此主题相关图片如下:
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)