摘要: 比如 克隆 clone, 获得的是一个acrxobject,acrxobject *pobj=pployline->clone();acdbpolyline *ppoly=acdbpolyline::case(pobj); 阅读全文
posted @ 2015-07-22 10:41 xzh1993 阅读(275) 评论(0) 推荐(0) 编辑
摘要: std::cout 阅读全文
posted @ 2015-07-22 10:03 xzh1993 阅读(132) 评论(0) 推荐(0) 编辑
摘要: #include "StdAfx.h"#include "FgPoly.h"#include "DwgDatabaseUtil.h"CFgPoly::CFgPoly(){}CFgPoly::~CFgPoly(){}AcDbObjectIdArray CFgPoly::FG(AcDbPolyline ... 阅读全文
posted @ 2015-07-22 09:47 xzh1993 阅读(903) 评论(0) 推荐(0) 编辑
摘要: 直接调用本身的函数搞定AcDbPolyline pl;int vtnum = pl.numVerts();for(int i=0; i<vtnum; i++){AcGePoint3d p1;pl.getPointAt(i, p1);} 阅读全文
posted @ 2015-07-17 16:03 xzh1993 阅读(991) 评论(0) 推荐(0) 编辑
摘要: static void linea(void) { AcDbDatabase *pDb = new AcDbDatabase(true, false); AcGePoint3d pickPoint; AcGePoint3d p1(0, 0, 0); AcGePoint3d p2(100, ... 阅读全文
posted @ 2015-07-17 11:33 xzh1993 阅读(683) 评论(0) 推荐(0) 编辑
摘要: Option ExplicitPrivate Declare Function PathFileExists Lib "shlwapi.dll" Alias "PathFileExistsA" (ByVal pszPath As String) As Long Sub C100() Dim s... 阅读全文
posted @ 2015-07-16 17:15 xzh1993 阅读(443) 评论(0) 推荐(0) 编辑
摘要: AcDbAttributeDefinition *pAtt = new AcDbAttributeDefinition(pte, _T("20"), TEXT("直径"), TEXT("输入直径")); 阅读全文
posted @ 2015-07-15 09:17 xzh1993 阅读(383) 评论(0) 推荐(0) 编辑
摘要: //定义查找条件字符串 string where = string.Format("Dn = {0} and TYPES = '{1}'", DI, cbType.Text);将指定字符串中的格式项替换为两个指定对象的字符串的表示型式。DI替换{0} types 替换{1} 阅读全文
posted @ 2015-03-14 07:44 xzh1993 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 类修饰符 阅读全文
posted @ 2015-01-20 09:59 xzh1993 阅读(252) 评论(0) 推荐(0) 编辑
摘要: if 阅读全文
posted @ 2015-01-18 11:26 xzh1993 阅读(129) 评论(0) 推荐(0) 编辑