欢迎加我的QQ群:193522571,一起来讨论、交流!

随笔分类 -  ObjectARX

摘要:#include "..\..\Common\IO\AppDirectoryUtil.h"#include "..\..\Common\Database\DbConnection.h"#include "..\..\Common\Database\DbCommand.h"#include "..\.... 阅读全文
posted @ 2014-10-07 11:26 swtool 阅读(513) 评论(0) 推荐(0) 编辑
摘要:static AcDbObjectId OffsetEnty(const ACHAR* BlkName,AcDbObjectId entId,double OfsValue,AcDbDatabase *pDb=CrtEntity:: pPurDb); //!(多段线特别处理)AcDbObjectId... 阅读全文
posted @ 2014-10-07 11:18 swtool 阅读(893) 评论(0) 推荐(0) 编辑
摘要:1.新建一个工程,注意将"使用MFC"选项勾上。2.使用【insert/Resouce】菜单项插入一个对话框。3.此时会弹出一个窗体,直接按Enter键可以调出【属性】面板。设置窗体的ID和窗体的Caption。4.可以点击【属性】面板左上角的图钉图标将其常显。5.向窗体中插入控件,依次设置其ID与... 阅读全文
posted @ 2014-07-16 21:55 swtool 阅读(863) 评论(0) 推荐(0) 编辑
摘要:Acad::ErrorStatus CEntityUtil::Rotate(AcDbObjectId entId,const AcGePoint2d &ptBase,double rotation){ //几何变换矩陈 AcGeMatrix3d xform; //向量 AcG... 阅读全文
posted @ 2014-07-03 22:11 swtool 阅读(831) 评论(0) 推荐(0) 编辑
摘要:AcDbObjectId CPolylineUtil::Add(const AcGePoint2dArray &points,double width/* =0 */){ //点数量 int numVertices=points.length(); //定义多段线 AcDbP... 阅读全文
posted @ 2014-07-03 22:10 swtool 阅读(664) 评论(0) 推荐(0) 编辑
摘要:static void swtArxProject5plcopy(void) { // Add your code for command swtArxProject5.plcopy here //定义对象名和点 ads_name ename;ads_... 阅读全文
posted @ 2014-06-29 23:04 swtool 阅读(941) 评论(1) 推荐(0) 编辑
摘要:AcDbObjectId PostToModelSpace(AcDbEntity *pEnt){ //定义块表 AcDbBlockTable *pBlk; acdbHostApplicationServices()->workingDatabase()->getSymbolTabl... 阅读全文
posted @ 2014-06-29 23:02 swtool 阅读(313) 评论(0) 推荐(0) 编辑
摘要:http://zhidao.baidu.com/link?url=qSPTMAXyvV02Gd5HHOwQgshdu6zJ_Js3hBFkBiIZ5FNY4bOq8prmnro9kKpxkNhgV6ktuMl3Ocb4uYMBZxqz7q 阅读全文
posted @ 2014-06-29 20:44 swtool 阅读(436) 评论(0) 推荐(0) 编辑
摘要:static void swtArxProject5readdwg(void) { // Add your code for command swtArxProject5.readdwg here //打开测试文件test.dwg AcDbDa... 阅读全文
posted @ 2014-06-29 14:03 swtool 阅读(1743) 评论(0) 推荐(0) 编辑
摘要:static void swtArxProject5createLine(void) { // Add your code for command swtArxProject5.createLine here //创建新的CAD数据库 AcDb... 阅读全文
posted @ 2014-06-29 14:01 swtool 阅读(761) 评论(0) 推荐(0) 编辑
摘要:初学ARX的人可能会遇到此问题,ObjectARX 2010必须在VS2008SP1中安装,默认安装完后是没有中文包的,所以显示的工具条是空的,且只有第1个按钮可以用,如果你的问题是这样的,那么你就不会像我一样走弯路了,请到下面的地址中去找中文包附件下载后复制到下面的地址中:链接: http://p... 阅读全文
posted @ 2014-06-29 13:53 swtool 阅读(798) 评论(0) 推荐(0) 编辑

欢迎加我的QQ群:193522571,一起来讨论、交流!
点击右上角即可分享
微信分享提示