摘要: double CCommonFuntion::GetLineDistance(AcDbObjectId& Line1, AcDbObjectId& Line2){ AcGeLineSeg2d geLine1 = GetGeLineObj(Line1); AcGeLineSeg2d geLine2 = 阅读全文
posted @ 2019-11-07 17:34 久龄 阅读(787) 评论(0) 推荐(0) 编辑
摘要: void CCommonFuntion::DrowPloyLine(AcGePoint2dArray& inputpoints){ if (inputpoints.length() < 3) return; AcDbPolyline *pPolyLine = new AcDbPolyline(3); 阅读全文
posted @ 2019-11-07 17:32 久龄 阅读(904) 评论(0) 推荐(0) 编辑
摘要: AcDbObjectId CCommonFuntion::PostToModelSpace(AcDbEntity* pEnt){ // 获得指向块表的指针 AcDbBlockTable *pBlockTable = NULL; //workingDatabase()能够获得一个指向当前活动的图形数据 阅读全文
posted @ 2019-11-07 17:31 久龄 阅读(642) 评论(0) 推荐(0) 编辑
摘要: bool CCommonFuntion::IsOnLine(AcGePoint2d& pt1, AcGePoint2d& pt2, AcGePoint2d& pt3){ AcGeVector3d vec1 = AcGeVector3d(pt2.x - pt1.x, pt2.y - pt1.y, 0) 阅读全文
posted @ 2019-11-07 17:30 久龄 阅读(509) 评论(0) 推荐(0) 编辑
摘要: void CCommonFuntion::BatchStorageEnt(AcDbObjectIdArray& inputId, std::vector<std::vector<AcDbObjectId>>& outputId){ AcDbEntity *pEnt = NULL; AcDbEntit 阅读全文
posted @ 2019-11-07 17:29 久龄 阅读(301) 评论(0) 推荐(0) 编辑