随笔分类 - objectarx
摘要:void CTest5::deleteAcDbBlockReference(CString& strBlockName){ // 获得当前图形数据库的块表 AcDbBlockTable *pBlkTbl; acdbHostApplicationServices()->workingDatabase(
阅读全文
摘要:void CTest5::deleteAcDbBlockReference(CString& strBlockName){ // 获得当前图形数据库的块表 AcDbBlockTable *pBlkTbl; acdbHostApplicationServices()->workingDatabase(
阅读全文
摘要:.h文件 #pragma once#include<iostream>#include<map>#include<string> typedef struct test_map { void test(void); test_map(AcGePoint3d sa) { _sa = sa; //_sb
阅读全文
摘要:dialog.h afx_msg LRESULT OnAcadKeepFocus(WPARAM, LPARAM); dialog.cpp BEGIN_MESSAGE_MAP(CTextDialog, CDialogEx) ON_MESSAGE(WM_ACAD_KEEPFOCUS, OnAcadKee
阅读全文
摘要:bool ThreePointIsCollinear(const AcGePoint2d &pt1, const AcGePoint2d &pt2, const AcGePoint2d &pt3){ double xy = pt1.x * pt1.x + pt1.y * pt1.y; double
阅读全文
摘要:double CCommonFuntion::GetLineDistance(AcDbObjectId& Line1, AcDbObjectId& Line2){ AcGeLineSeg2d geLine1 = GetGeLineObj(Line1); AcGeLineSeg2d geLine2 =
阅读全文
摘要:void CCommonFuntion::DrowPloyLine(AcGePoint2dArray& inputpoints){ if (inputpoints.length() < 3) return; AcDbPolyline *pPolyLine = new AcDbPolyline(3);
阅读全文
摘要:AcDbObjectId CCommonFuntion::PostToModelSpace(AcDbEntity* pEnt){ // 获得指向块表的指针 AcDbBlockTable *pBlockTable = NULL; //workingDatabase()能够获得一个指向当前活动的图形数据
阅读全文
摘要:bool CCommonFuntion::IsOnLine(AcGePoint2d& pt1, AcGePoint2d& pt2, AcGePoint2d& pt3){ AcGeVector3d vec1 = AcGeVector3d(pt2.x - pt1.x, pt2.y - pt1.y, 0)
阅读全文
摘要:void CCommonFuntion::BatchStorageEnt(AcDbObjectIdArray& inputId, std::vector<std::vector<AcDbObjectId>>& outputId){ AcDbEntity *pEnt = NULL; AcDbEntit
阅读全文
摘要://炸开void BomEntity(){ AcDbBlockTable *pBlkTbl; acdbHostApplicationServices()->workingDatabase()->getBlockTable(pBlkTbl, AcDb::kForRead); //获得模型空间的块表记录
阅读全文

浙公网安备 33010602011771号