几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(C++) (http://www.dimcax.com/hust/forumdisplay.php?f=34)
-   -   【转帖】求助:画spline线条出错。 (http://www.dimcax.com/hust/showthread.php?t=7880)

yang686526 2009-04-18 05:22 PM

【转帖】求助:画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;
}
运行出现如下错误

此主题相关图片如下:


所有的时间均为北京时间。 现在的时间是 04:17 PM.