明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1522|回复: 0

求助:画spline线条出错。

[复制链接]
发表于 2005-4-11 15:38:00 | 显示全部楼层 |阅读模式
程序代码如下: 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;
} 运行出现如下错误

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-26 08:55 , Processed in 0.147844 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表