明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3659|回复: 2

[求助]acmgd.dll和acdbmgd.dll能否被独立地在C#应用程序中引用?

[复制链接]
发表于 2004-10-12 14:51 | 显示全部楼层 |阅读模式
我在一个用C#开发的应用程序中引用AutoCAD2005自带的托管封装类acmgd.dll和acdbmgd.dll,想使用其中的一些类来开发新的应用程序,但是在编译通过后却无法运行,说是找不到相应的Publisher Policy File和 Host configuration file.不知道能不能将这两个组件引入到一个新的C#应用程序(.exe类型)程序中?如果能,应该怎样设置?以下是程序调试信息: LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: acmgd, Version=16.1.63.0, Culture=neutral, PublicKeyToken=7208edf2a10162b1
LOG: Attempting download of new URL file:///C:/Documents and Settings/Administrator/My Documents/Visual Studio Projects/winAppSql/bin/Debug/acmgd.DLL.
发表于 2004-10-12 16:36 | 显示全部楼层
不能,就像ARX程序必须在AutoCAD中运行。
 楼主| 发表于 2004-10-13 15:16 | 显示全部楼层
呵呵,谢谢版主!再请教一个问题:在C#程序中能否通过AutoCADA2005的Com接口(Autodesk.AutoCAD.Interop+Autodesk.AutoCAD.Interop.Common)来实现对AutoCAD事件的代理的调用(如:Autodesk.AutoCAD.Interop._DAcadDocumentEvents_BeginCommandEventHandler)?


也就是说能不能在C#程序中处理响应AutoCAD2005中的事件?如果能,应该如何实现?谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-4-25 10:04 , Processed in 0.717297 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表