随笔分类 -  objectarx

摘要:void CTest5::deleteAcDbBlockReference(CString& strBlockName){ // 获得当前图形数据库的块表 AcDbBlockTable *pBlkTbl; acdbHostApplicationServices()->workingDatabase( 阅读全文
posted @ 2020-03-10 16:04 久龄 阅读(86) 评论(0) 推荐(0)
摘要:void CTest5::deleteAcDbBlockReference(CString& strBlockName){ // 获得当前图形数据库的块表 AcDbBlockTable *pBlkTbl; acdbHostApplicationServices()->workingDatabase( 阅读全文
posted @ 2020-03-10 14:51 久龄 阅读(70) 评论(0) 推荐(0)
摘要:.h文件 #pragma once#include<iostream>#include<map>#include<string> typedef struct test_map { void test(void); test_map(AcGePoint3d sa) { _sa = sa; //_sb 阅读全文
posted @ 2019-11-26 17:12 久龄 阅读(116) 评论(0) 推荐(0)
摘要:dialog.h afx_msg LRESULT OnAcadKeepFocus(WPARAM, LPARAM); dialog.cpp BEGIN_MESSAGE_MAP(CTextDialog, CDialogEx) ON_MESSAGE(WM_ACAD_KEEPFOCUS, OnAcadKee 阅读全文
posted @ 2019-11-15 18:51 久龄 阅读(338) 评论(0) 推荐(0)
摘要:bool ThreePointIsCollinear(const AcGePoint2d &pt1, const AcGePoint2d &pt2, const AcGePoint2d &pt3){ double xy = pt1.x * pt1.x + pt1.y * pt1.y; double 阅读全文
posted @ 2019-11-11 09:00 久龄 阅读(201) 评论(0) 推荐(0)
摘要:double CCommonFuntion::GetLineDistance(AcDbObjectId& Line1, AcDbObjectId& Line2){ AcGeLineSeg2d geLine1 = GetGeLineObj(Line1); AcGeLineSeg2d geLine2 = 阅读全文
posted @ 2019-11-07 17:34 久龄 阅读(881) 评论(0) 推荐(0)
摘要:void CCommonFuntion::DrowPloyLine(AcGePoint2dArray& inputpoints){ if (inputpoints.length() < 3) return; AcDbPolyline *pPolyLine = new AcDbPolyline(3); 阅读全文
posted @ 2019-11-07 17:32 久龄 阅读(969) 评论(0) 推荐(0)
摘要:AcDbObjectId CCommonFuntion::PostToModelSpace(AcDbEntity* pEnt){ // 获得指向块表的指针 AcDbBlockTable *pBlockTable = NULL; //workingDatabase()能够获得一个指向当前活动的图形数据 阅读全文
posted @ 2019-11-07 17:31 久龄 阅读(753) 评论(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 久龄 阅读(557) 评论(0) 推荐(0)
摘要:void CCommonFuntion::BatchStorageEnt(AcDbObjectIdArray& inputId, std::vector<std::vector<AcDbObjectId>>& outputId){ AcDbEntity *pEnt = NULL; AcDbEntit 阅读全文
posted @ 2019-11-07 17:29 久龄 阅读(334) 评论(0) 推荐(0)
摘要://炸开void BomEntity(){ AcDbBlockTable *pBlkTbl; acdbHostApplicationServices()->workingDatabase()->getBlockTable(pBlkTbl, AcDb::kForRead); //获得模型空间的块表记录 阅读全文
posted @ 2019-09-24 14:13 久龄 阅读(1647) 评论(0) 推荐(0)