![]() |
【转帖】求助:画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; } 运行出现如下错误 此主题相关图片如下: |
| 所有的时间均为北京时间。 现在的时间是 11:38 AM. |