本帖最后由 gzxl 于 2025-8-14 03:13 编辑
 - AcDbObjectId CMleaderUtil::Add(const AcGePoint3d& point, const AcGePoint3d& lastPoint, const AcGePoint3d& lastVertexPt,
- int iIndex /* = 0 */)
- {
- AcDbMLeader *pMLeader = new AcDbMLeader();
- pMLeader->addLeaderLine(point, iIndex);
- pMLeader->addLastVertex(iIndex, lastPoint);
- pMLeader->setLastVertex(iIndex, lastVertexPt);
- AcDbObjectId mleaderId = CDwgDatabaseUtil::PostToModelSpace(pMLeader);
- return mleaderId;
- }
|