PPT_LOGO_4b
AutoCAD Architecture .NET API ‹#›
Copyright © 2009 Autodesk Inc.
ACA.NET -开发过程
•  创建一个类库
§生一个装配, 扩展名是DLL
§用ObjectARX 向导生成一个最小的 VB.NET 或 C#工程
§
•引用装配
§AutoCAD.NET引用的装配。 文件名为 ac*mgd.dll . 位于ACA安装目录
§acdbmgd.dll
§acmgd.dll
§ACA.NET  引用的装配。 文件名为 Aec*Mgd.dll, 位于ACA 安装目录
§AecBaseMgd.dll
§AecArchMgd.dll
§AecPropDataMgd.dll
§AecStructureMgd.dll
§AecProjectBaseMgd.dll
§AecSpaceOffsetRulesManager.dll
§. . .
•  加载DLL
§NETLOAD命令加载DLL到ACA中
§在acad.exe进程中运行
§无法卸载(因微软的设计)
Here is a very short instruction for creating an ACA.NET application. For more details, refer to the AutoCAD.NET and ACA 2009 .NET resources listed at the end.
Reference AutoCAD assemblies, located in the product install folder.
acdbmgd.dll - ObjectDBX .NET Managed Wrapper, includes IExtensionApplication.
acmgd.dll - AutoCAD .NET Managed Wrapper, includes CommandClass and CommandMethod attributes.
Reference the required ACA assemblies, depending on your needs.
The ObjectARX Wizard adds the two AutoCAD assemblies automatically, but not the ACA ones. They need to be added manually.