- 积分
- 463
- 明经币
- 个
- 注册时间
- 2002-6-19
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
还是实现CAD屏幕上文字的输出,代码如下:
void drawtext() { AcGePoint3d startpoint(100,100,0); AcDbText textout(startpoint,"This is a Test!"); AcDbBlockTable *pblocktable; acdbHostApplicationServices()->workingDatabase()->getSymbolTable(pblocktable,AcDb::kForWrite); AcDbBlockTableRecord *pblockrecord; pblocktable->getAt(ACDB_MODEL_SPACE,pblockrecord,AcDb::kForWrite); pblocktable->close(); AcDbObjectId id; pblockrecord->appendAcDbEntity(id,&textout); pblockrecord->close(); textout.close(); }
用VC编译没有错误,但CAD加载ARX文件执行时,输出如下错误提示:
--------------------------- AutoCAD 错误中断 ---------------------------
内部错误: !U:\global\src\ObjectDbx\DB\IMP\src\dbobji.cpp@280
--------------------------- 确定 --------------------------- 不知是怎么回事,求大家指点一下吧!!! |
|