上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: AcDbObjectId CCommonFuntion::PostToModelSpace(AcDbEntity* pEnt){ // 获得指向块表的指针 AcDbBlockTable *pBlockTable = NULL; //workingDatabase()能够获得一个指向当前活动的图形数据 阅读全文
posted @ 2019-11-07 17:31 久龄 阅读(641) 评论(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) 编辑
摘要: 原dll中导出的接口如图: Head.h: struct zint_render_line { float x, y, length, width; struct zint_render_line *next; /* Pointer to next line */}; struct zint_ren 阅读全文
posted @ 2019-09-26 14:22 久龄 阅读(495) 评论(0) 推荐(0) 编辑
摘要: //炸开void BomEntity(){ AcDbBlockTable *pBlkTbl; acdbHostApplicationServices()->workingDatabase()->getBlockTable(pBlkTbl, AcDb::kForRead); //获得模型空间的块表记录 阅读全文
posted @ 2019-09-24 14:13 久龄 阅读(1408) 评论(0) 推荐(0) 编辑
摘要: CString CConvert::UTF82WCS(const char* szU8){ //预转换,得到所需空间的大小; int wcsLen = ::MultiByteToWideChar(CP_UTF8, NULL, szU8, strlen(szU8), NULL, 0); //分配空间要 阅读全文
posted @ 2019-09-06 17:52 久龄 阅读(208) 评论(0) 推荐(0) 编辑
摘要: void CConvert::Split(const std::string& src, const std::string& separator, std::vector<std::string>& dest) //字符串分割到数组{ //参数1:要分割的字符串;参数2:作为分隔符的字符;参数3: 阅读全文
posted @ 2019-09-06 17:42 久龄 阅读(1637) 评论(0) 推荐(0) 编辑
摘要: 由于win10比较特殊,导致获取的文件路径是错误的,用下面代码就可以解决 char path[200]; memset(path, 0x00, sizeof(path)); GetModuleFileNameA(_hdllInstance, path, 200);//get work path,_h 阅读全文
posted @ 2019-08-27 09:49 久龄 阅读(803) 评论(0) 推荐(0) 编辑
摘要: #pragma once#include "stdafx.h" #ifndef _Convert_H_#define _Convert_H_ //定义转换类class Convert{public: //定义一般函数 // ACHAR* ConvertCharPtrToAcharPtr(const 阅读全文
posted @ 2019-08-05 09:44 久龄 阅读(663) 评论(0) 推荐(0) 编辑
摘要: AcDbText* pText = AcDbText::cast(pEnt); AcString sText = DBHelper::AcStringFree(pText->textString());//pText->textString()为CAD上获取的字符 ACHAR *strtochar 阅读全文
posted @ 2019-08-04 20:10 久龄 阅读(858) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页