CR的代码文本

all for learning about the world
随笔 - 402, 文章 - 0, 评论 - 176, 阅读 - 47万
  订阅 订阅  :: 管理
< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

随笔分类 -  AutoCAD/ObjectARX

摘要:原文地址:http://adndevblog.typepad.com/autocad/2013/08/registry-values-for-productid-and-localeid-for-autocad.htmlHKEY_LOCAL_MACHINE\Software\Autodesk\AutoCAD\R19.1\ACAD-D001:409 What is ACAD-D001:409?R19.1 is the release number, the this corresponds to AutoCAD 2014These digits like D000:409 are a Produ 阅读全文

posted @ 2014-03-11 10:31 mumuliang 阅读(532) 评论(0) 推荐(0) 编辑

摘要:必须先Acad::ErrorStatus es; 然后return es。补充:如果把cpp中#include "*.h"和#include"stdafx.h"放在后面的话,可以神奇的ctrl+f7 success。 阅读全文

posted @ 2013-12-10 13:18 mumuliang 阅读(786) 评论(0) 推荐(0) 编辑

摘要:1.在AutoCAD的安装根目录下,用记事本创建一个acad.rx文件,如下------acad.rx-----ArxDbg.arx--------------------2.将ArxDbg.arx拷贝到AutoCAD的安装根目录。BangBang!成功。方法来自:http://objectarx.net/forum.php?mod=viewthread&tid=874这里还提及了用Support目录下的lisp脚本的方式,但用appload arxdbg.arx的方式未能成功。-------------所以任何时候都要对文档有信心,搜索之前先翻文档。http://docs.autod 阅读全文

posted @ 2013-12-05 18:23 mumuliang 阅读(5283) 评论(2) 推荐(0) 编辑

摘要:AcRx::AppMsgCode一共有19种消息。但由IMPLEMENT_ARX_ENTRYPOINT宏实现的App类,只处理了16种消息。缺: kSuspendMsg = 16, kInitTabGroupMsg = 17, kEndTabGroupMsg = 18Messages that are sent to all applicationsMessages that are sent only if the application has registered an AutoLISP ® function with acedDefun()Messages that are 阅读全文

posted @ 2013-12-05 15:02 mumuliang 阅读(1676) 评论(2) 推荐(0) 编辑

摘要:一个dwg对应一个arx database,也就是一套9个符号表和一个有名词典。一个CAD session中是可以加载多个database的。加载后每个对象都有一个handle和一个objectid用来标记自身。handle是database内唯一的,objectid是当前session内global唯一的。但objectid是跟session有关系的,它只在编辑会话期间有效,during edit session。handle是会写入dwg的。 阅读全文

posted @ 2013-12-05 14:59 mumuliang 阅读(843) 评论(1) 推荐(0) 编辑

摘要:翻译自dev guide《Compile and Debug Mixed-mode projects》默认vs2010是使用ARX2014,开发AutoCAD2014使用的ARX,但是经过配置也可以生成CAD2013和2012使用的ARX。这样做是为了只持有一份源代码项目,保持多个CAD版本的arx的一致,避免人为因素造成的同一版本ARX在CAD不同版本中的不一致。AutoCAD2014使用.Net 4.0,这也切好是vs2010的默认.net版本。因此……为了让vs2010能够build和debug使用不同版本.net框架的AutoCAD2010等,需要修改项目的目标.NET版本(targe 阅读全文

posted @ 2013-12-05 11:39 mumuliang 阅读(2334) 评论(0) 推荐(0) 编辑

摘要:AutoCAD有4种API,.net,lisp,activex和ObjectARX(C++)。它们都是用来给cad写插件什么的,依赖cad运行。另有一个RealDWG SDK,这是用来读写dwg或dxf文件的。可以完全脱离cad环境运行。好比是dwg文件的解码编码器。如果闲的疼的话,完全可以配合一个opengl渲染环境来做成一些无聊的事。另外,还有一个ObjectDBX。在ObjectARX的Dev Guide中,是这么说DBX的:ObjectDBX ™ is the foundation for ObjectARX and for the RealDWG ® SDK.另外,下面这段 阅读全文

posted @ 2013-12-04 14:54 mumuliang 阅读(3207) 评论(0) 推荐(1) 编辑

摘要:readarx.chm《Tips and Techniques》Incremented AutoCAD Registry NumberIdeally, a change of registry number should have no impact on your application's code, because this number should not be hard-coded anywhere. Instead, if your application needs to know the correct registry key at runtime, you sho 阅读全文

posted @ 2013-12-04 14:27 mumuliang 阅读(1042) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示