- 积分
- 1865
- 明经币
- 个
- 注册时间
- 2002-12-4
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
自定义函数如下:
void mypline(AcGePoint3dArray parr) { int len(0); len=parr.length(); if(len==0) return; AcDb2dPolyline *pNew= new AcDb2dPolyline( AcDb::k2dSimplePoly,parr);//,0,Adesk::kFalse,0,0,NULL); // pNew->setColorIndex(7); AcDbBlockTable *pBlock; acdbHostApplicationServices()->workingDatabase() ->getBlockTable(pBlock,AcDb::kForRead); AcDbBlockTableRecord* pBlockRecord; pBlock->getAt(ACDB_MODEL_SPACE,pBlockRecord,AcDb::kForWrite); pBlock->close(); AcDbObjectId pobjId; pBlockRecord->appendAcDbEntity(pobjId,pNew); pBlockRecord->close(); // pNew->setLayer("VT"); pNew->close(); }
出现如下link error:
error LNK2001: unresolved external symbol "public: void __thiscall CMkxd::mypline(class AcArray<class AcGePoint3d,class AcArrayMemCopyReallocator<class AcGePoint3d> >)" (?mypline@CMkxd@@QAEXV?$AcArray@VAcGePoint3d@@V?$AcArrayMemCopyReallo cator@VAcGePoint3d@@@@@@@Z)
请知道的朋友帮助!,谢了!!! |
|