发了CAD的帖子后有个朋友说要CAD 批量打图工具 ,所以现在分享来了
【软件介绍】:
cad批量打图精灵破解版V6.4专业版(带CAD批量打图精灵6.4授权文件)
依云CAD批量打图精灵是一款可以帮助用户自动识图框并打印而且还能模拟空间批量打印还支持自动打开dwg文件,可以说是一款比较实用的cad批量打图软件。支持多张dwg文件批量打印的软件,一些复杂的cad图纸往往有上十张甚至上百张,以往想要打印出来需要一个个的手工框选打印,现在使用cad批量打图精灵就能让你脱离苦海,一次就OK哦!绿色先锋为大家提供cad批量打图精灵破解版下载。
【软件截图】:
安装步骤:一定要先关闭CAD哦
你想问工具怎么用?
这位大大早就想到了,里面有安装、注册、以及批量打印的教程哦。
CAD批量打图精灵6.4:链接:http://yunpan.cn/cQHTiGVGvtSqI 访问密码 472a
这里算我沾那位论坛前辈的光吧,不过也希望能有一些支持和评分
现在分享给你,你也快来顶一下吧
分享自网易热(查看原文)
标签:style log com 代码 使用 http src si it
其他话不多说,直接进入主题,既然是二次开发,当然是用CAD平台已经封装好了很多类,我们需要熟悉和使用它们。常用的AutoCAD .NET API的四个主要DLL文件是:
名称 |
作用 |
备注 |
AcDbMgd.dll |
处理图形文件中存储的对象 |
|
AcMgd.dll |
处理AutoCAD应用程序和用户接口 |
|
AcCui.dll |
处理自定义文件 |
|
AcCoreMgd.dll |
处理编辑器、发布与打印、定义AutoLISP命令和函数 |
AutoCAD 2014版 |
我们现在不必去深究这些类库的构造,这四个引用 的位置可以在CAD的安装路径下找到,(<盘符>:\program Files\AutoCAD 2013),先来一个测试实例:
新建类库项目,添加AcDbMgd和AcMgd引用,将引用的"复制本地"属性设置为False
设置项目属性中"调试"启动外部CAD程序。
添加测试代码,新建一个DWG文件。
启动调用,程序将打开Cad2013,在命令行中输入"netload",加载生成的dll文件,输入命令"NEWDWG"进行测试。
在调试过程中遇到的主要问题有:
问题一:未能找到类型或命名空间名称"CommandMethod"(是否缺少 using 指令或程序集引用?)
解决:如果是13以上的版本,除了添加AcDbMgd和AcMgd引用外,还应添加accoremgd引用,然后就是using了。
问题二:特性"CommandMethod"对此声明类型无效。它只对"method"声明有效。
解决:CommandMethod语句之后的有效行必定要是一个函数。
问题三:程序集生成 -- 引用的程序集"accoremgd.dll"针对其他处理器
解决:操作系统版本问题,将目标平台改为x64即可。
问题四:netload加载时错误: 未能完成程序集的安装(hr = 0x8007000b)。探测终止。
解决:Framework平台是4.0,其中的Linq引用有问题,不用它,去掉即可。
请参见此消息的结尾。
************** 异常文本 **************
System.NullReferenceException: 未将对象引用设置到对象的实例。
在 BitAuto.HCSInterface.frmMain.tUpDown_Tick(Object sender, EventArgs e)
在 System.Windows.Forms.Timer.OnTick(EventArgs e)
在 System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** 已加载的程序集 **************
mscorlib
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.42 (RTM.050727-4200)
基本代码: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
HCSInterface
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///C:/Program%20Files/CRM二期系统/Interface/HCSInterface.exe
----------------------------------------
System
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.42 (RTM.050727-4200)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.42 (RTM.050727-4200)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.42 (RTM.050727-4200)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
BitAuto.Common
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///C:/Program%20Files/CRM二期系统/Interface/BitAuto.Common.DLL
----------------------------------------
BitAuto.ModelDown
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///C:/Program%20Files/CRM二期系统/Interface/BitAuto.ModelDown.DLL
----------------------------------------
System.Data
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.42 (RTM.050727-4200)
基本代码: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.42 (RTM.050727-4200)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.42 (RTM.050727-4200)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Transactions
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.42 (RTM.050727-4200)
基本代码: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.42 (RTM.050727-4200)
基本代码: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
BitAuto.BLLDown
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///C:/Program%20Files/CRM二期系统/Interface/BitAuto.BLLDown.DLL
----------------------------------------
BitAuto.DALDown
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///C:/Program%20Files/CRM二期系统/Interface/BitAuto.DALDown.DLL
----------------------------------------
BitAuto.DBUtility
程序集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代码: file:///C:/Program%20Files/CRM二期系统/Interface/BitAuto.DBUtility.DLL
----------------------------------------
System.Windows.Forms.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.42 (RTM.050727-4200)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
System.Web.Services
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.42 (RTM.050727-4200)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
cvuqyfxw
程序集版本: 1.0.0.0
Win32 版本: 2.0.50727.42 (RTM.050727-4200)
基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
mscorlib.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.42 (RTM.050727-4200)
基本代码: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。
例如:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
启用 JIT 调试后,任何无法处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
把这个值设置为false!
Components of the AutoCAD .NET API
AutoCAD .NET API组件
The AutoCAD .NET API is made up of different DLL files that contain a wide range of classes, structures, methods, and events that provide access to objects in a drawing file or the AutoCAD application. Each DLL file defines different namespaces which are used to organize the components of the libraries based on functionality.
AutoCAD .NET API由不同的DLL文件组成,这些DLL文件包含有大量的类、结构、方法及事件,用于访问图形文件对象或AutoCAD程序对象。每个DLL文件定义了不同的命名空间,按功能组织API组件。
The three main DLL files of the AutoCAD .NET API that you will frequently use are:
常用的AutoCAD .NET API的三个主要DLL文件是:
· AcDbMgd.dll. Use when working with objects in a drawing file. 用于处理图形文件对象;
· AcMgd.dll. Use when working with the AutoCAD application. 用于处理AutoCAD应用程序;
· AcCui.dll. Use when working with customization files. 用于处理自定义文件;
Use an AutoCAD .NET API DLL 引用AutoCAD .NET API DLL文件
Before classes, structures, methods, and events found in one of the AutoCAD .NET API related DLLs can be used, you must reference the DLL to a project. After a DLL is referenced to a project, you can utilize the namespaces and the components in the DLL file in your project.
使用AutoCAD .NET API相关DLL文件里提供的类、结构、方法及事件之前,必须在你的VisualStudio工程中引用相应的DLL文件。完成引用后,你就可以在工程中使用该DLL文件里定义的命名空间和API组件。
Once a AutoCAD .NET API DLL is referenced, you must set the Copy Local property of the referenced DLL to False. The Copy Local property determines if Microsoft Visual Studio creates a copy of the referenced DLL file and places it in the same directory as the assembly file of the project when it is built. Since the referenced files already ship with AutoCAD, creating copies of referenced DLL files can cause unexpected results when you load your assembly file in AutoCAD.
一旦引用了AutoCAD .NET API DLL文件,应将该引用的“复制本地”属性设置为False(设置方法:解决方案资源管理器->右键该引用->属性->复制本地->选False)。“复制本地”属性确定当Microsoft Visual Studio编译工程时是否创建一个引用文件的副本并将它放在与工程的程序集文件相同的目录下。 由于AutoCAD安装目录里包含有相同文件名的DLL文件, 因此,如果创建了引用文件副本,当加载程序集文件到AutoCAD中时可能会引发意想不到的结果。
Location of AutoCAD .NET API DLL files 定位AutoCAD .NET API DLL文件
The AutoCAD .NET API DLL files can be located at <drive>:/Program Files/AutoCAD 2012 or as part of the AutoCAD 2012 ObjectARX SDK which can be downloaded from http://www.objectarx.com or the Autodesk Developer Network Web site (http://www.autodesk.com/adn).
AutoCAD .NET API DLL文件位于AutoCAD安装目录里(<盘符>:/program Files/AutoCAD 2012),同时,作为AutoCAD 2012 ObjectARX SDK开发包的一部分,从http://www.objectarx.com下载,或从AutoCAD开发者网站下载(http://www.autodesk.com/adn)。
After the ObjectARX SDK is installed, the DLL files can be found in the inc-win32 and inc-x64 folders under the main install folder.
安装ObjectARX SDK开发包后,可以在主安装目录下的inc目录下找到AutoCAD .NET API DLL文件。
Note The DLLs in the ObjectARX SDK are simplified versions of the same files that ship with AutoCAD, as they do not contain dependencies on the AutoCAD user interface. It is recommended that you download and install the ObjectARX SDK, and then reference the DLL files that come with the SDK instead of those that are found in the install directory of AutoCAD 2012.
ObjectARX SDK开发包里的.NET API DLL文件是AutoCAD软件包里相应DLL文件的简化版本,不包含AutoCAD用户界面相关内容。推荐下载并安装ObjectARX SDK开发包,在工程中引用开发包里的DLL文件,而不引用AutoCAD2012安装目录里的文件。
联系客服