上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: CAD ObjectARX扩展工具的源码(二) //AcDbObjectId CDrawFunction::createtextAll(AcGePoint3d pt,char *text,AcDb::TextHorzMode hMode,AcDb::TextertMode Mode,double h 阅读全文
posted @ 2020-03-01 21:54 中国膜结构网mjgou 阅读(402) 评论(0) 推荐(0) 编辑
摘要: CAD ObjectARX扩展工具的源码(一)收藏的CAD扩展工具的源码: Acad::ErrorStatus CDrawFunction::getAllEntity(AcDbDatabase *pDb,AcDbObjectIdArray& IdArr,const AcArray& layerNam 阅读全文
posted @ 2020-03-01 21:53 中国膜结构网mjgou 阅读(648) 评论(0) 推荐(0) 编辑
摘要: ObjectARX常用类和函数 (1)AcAx 开头的全局函数:这些函数通过 COM 的方式来让AutoCAD 完成一些操作。 (a) acutPrintf函数:在 AutoCAD 命令行显示指定的字符串 acutPrintf函数的具体用法如例: acutPrintf("\n输入不合法,请重新输入" 阅读全文
posted @ 2020-03-01 21:27 中国膜结构网mjgou 阅读(3571) 评论(0) 推荐(0) 编辑
摘要: 从今天起我陆续贴给大家:AcApLayoutManager 类处理和访问AcDbLayout对象的应用程序特定程序的接口类。这个类也控制着与GUI属性相关的Layout(布局)。继承自AcDbLayoutManager包含文件acaplmgr.h参见AcDbLayout, AcDbLayoutMan 阅读全文
posted @ 2020-03-01 16:52 中国膜结构网mjgou 阅读(1012) 评论(0) 推荐(0) 编辑
摘要: ARX错误1 LINK : fatal error LNK1104: 无法打开文件“D:\win10\Desktop\123\x64\Debug\xxx.arx” 有可能没有关闭CAD,文件被cad占用了。 阅读全文
posted @ 2020-03-01 10:57 中国膜结构网mjgou 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 关键功能函数是 (VLAX-Add-Cmd)。 (VLAX-Add-Cmd “命令名”函数名 [“命令别名” 命令标志码]) 作用: 将一个用户函数以内部命令身份加入到AutoCAD命令集之中。 参数: <命令名>:字串,确定了在“命令:”提示下可以使用的命令名称。 <函数名>:符号,确定了定义这个 阅读全文
posted @ 2020-02-23 18:10 中国膜结构网mjgou 阅读(646) 评论(0) 推荐(1) 编辑
摘要: ObjectARX_distanceTo俩点间的距离 AcGePoint2d pt1; AcGePoint2d pt2; double dDistance = pt1.distanceTo(pt2); 阅读全文
posted @ 2020-02-23 00:13 中国膜结构网mjgou 阅读(282) 评论(0) 推荐(0) 编辑
摘要: BOOL GetArxPath(CString &path){ CString ArxPath; ACHAR modulePath[512];//取应用程序路径 //CString FileName = acedGetAppName(); //功能与下个函数重复,可能为空,不可靠 HMODULE h 阅读全文
posted @ 2020-02-23 00:10 中国膜结构网mjgou 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 求一圆的外切三角形的三个顶点坐标。 // cad x轴正方向为零度方向,逆时针为正 // centerPt为圆心坐标,radius为圆的半径,angle为三角形顶角偏移角度 AcGePoint3dArray CustemEntity::GetCalculateVertexCoordinate(con 阅读全文
posted @ 2020-02-23 00:07 中国膜结构网mjgou 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 求一圆的外切正方形的四个顶点坐标。 // cad x轴正方向为零度方向,逆时针为正 // centerPt为圆心坐标,radius为圆的半径,angle为正方形的第一个点的偏移角度 AcGePoint3dArray GetCalculateVertexZfx(const AcGePoint3d& c 阅读全文
posted @ 2020-02-23 00:05 中国膜结构网mjgou 阅读(840) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 下一页