明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: zhdong

[资源] C#ARX代码。和很多列子

  [复制链接]
发表于 2012-7-27 14:34 | 显示全部楼层
谢谢
发表于 2012-8-11 17:37 | 显示全部楼层
不错,学习了,感谢
发表于 2012-8-11 22:58 | 显示全部楼层
下载下来好好看看,新手求教
发表于 2012-8-12 11:27 | 显示全部楼层
谢谢啊
发表于 2012-10-5 23:25 | 显示全部楼层
,非常好。感谢。
发表于 2013-1-20 16:31 | 显示全部楼层
我用的是CAD2013+VS2010,调试时出现少了PresentationCore.dll,加入引用后通过调试。但是为什么非要编译完了在CAD中netload 那个dll才可以运行。不可以通过VS调试启动CAD运行呢,只要调试启动就会出错。下面是出错内容。

有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.InvalidCastException: 无法将类型为“Autodesk.AutoCAD.LivePreview.PreviewRuleProvider”的对象强制转换为类型“Autodesk.AutoCAD.Internal.IPreviewContextProvider”。
   在 Autodesk.AutoCAD.LivePreview.PreviewContextService.LoadContext()
   在 Autodesk.AutoCAD.LivePreview.PreviewContextService.get_ContextProvider()
   在 Autodesk.AutoCAD.LivePreview.PreviewContextManager.OnIdleInitialize(Object sender, EventArgs e)
   在 System.EventHandler.Invoke(Object sender, EventArgs e)
   在 Autodesk.AutoCAD.ApplicationServices.Core.Application.OnIdle()


************** 已加载的程序集 **************
mscorlib
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.296 (RTMGDR.030319-2900)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
Acdbmgd
    程序集版本: 19.0.0.0
    Win32 版本: 19.0.55.0.0
    基本代码: file:///C:/Program%20Files/Autodesk/AutoCAD%202013/AcdbMgd.DLL
----------------------------------------
System
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.1001 built by: RTMGDR
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.233 built by: RTMGDR
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
AdApplicationFrame
    程序集版本: 0.0.0.0
    Win32 版本: 3.5.19.0
    基本代码: file:///C:/Program%20Files/Autodesk/AutoCAD%202013/AdApplicationFrame.DLL
----------------------------------------
AdWindows
    程序集版本: 3.5.21.0
    Win32 版本: 3.5.21.0
    基本代码: file:///C:/Program%20Files/Autodesk/AutoCAD%202013/AdWindows.DLL
----------------------------------------
PresentationFramework
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.298
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll
----------------------------------------
WindowsBase
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.298 built by: RTMGDR
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
PresentationCore
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.298 built by: RTMGDR
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
System.Xaml
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.298 built by: RTMGDR
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
----------------------------------------
System.Configuration
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.1 (RTMRel.030319-0100)
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.233 built by: RTMGDR
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
AdWindows.resources
    程序集版本: 3.5.21.0
    Win32 版本: 3.5.21.0
    基本代码: file:///C:/Program%20Files/Autodesk/AutoCAD%202013/zh-CN/AdWindows.resources.DLL
----------------------------------------
PresentationFramework.Aero
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.1 built by: RTMRel
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero.dll
----------------------------------------
System.Drawing
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.1001 built by: RTMGDR
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
PresentationCore.resources
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.1 built by: RTMRel
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationCore.resources/v4.0_4.0.0.0_zh-Hans_31bf3856ad364e35/PresentationCore.resources.dll
----------------------------------------
accoremgd
    程序集版本: 19.0.0.0
    Win32 版本: 19.0.55.0.0
    基本代码: file:///C:/Program%20Files/Autodesk/AutoCAD%202013/accoremgd.DLL
----------------------------------------
Acmgd
    程序集版本: 19.0.0.0
    Win32 版本: 19.0.55.0.0
    基本代码: file:///C:/Program%20Files/Autodesk/AutoCAD%202013/Acmgd.DLL
----------------------------------------
AcWindows
    程序集版本: 19.0.0.0
    Win32 版本: 19.0.55.0.0
    基本代码: file:///C:/Program%20Files/Autodesk/AutoCAD%202013/AcWindows.DLL
----------------------------------------
AcCui
    程序集版本: 19.0.0.0
    Win32 版本: 19.0.55.0.0
    基本代码: file:///C:/Program%20Files/Autodesk/AutoCAD%202013/AcCui.DLL
----------------------------------------
mscorlib.resources
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.235 (RTMGDR.030319-2300)
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
PresentationFramework.resources
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.1
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.resources/v4.0_4.0.0.0_zh-Hans_31bf3856ad364e35/PresentationFramework.resources.dll
----------------------------------------
WindowsFormsIntegration
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.1 built by: RTMRel
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsFormsIntegration/v4.0_4.0.0.0__31bf3856ad364e35/WindowsFormsIntegration.dll
----------------------------------------
AcWindows.resources
    程序集版本: 19.0.0.0
    Win32 版本: 19.0.55.0.0
    基本代码: file:///C:/Program%20Files/Autodesk/AutoCAD%202013/zh-CN/AcWindows.resources.DLL
----------------------------------------
Acmgd
    程序集版本: 19.0.0.0
    Win32 版本: 19.0.55.0.0
    基本代码: file:///F:/360云盘/CAD/STUDY/最新/bin/Debug/acmgd.dll
----------------------------------------
PresentationUI
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.1 built by: RTMRel
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationUI/v4.0_4.0.0.0__31bf3856ad364e35/PresentationUI.dll
----------------------------------------
PresentationUI.resources
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.1 built by: RTMRel
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationUI.resources/v4.0_4.0.0.0_zh-Hans_31bf3856ad364e35/PresentationUI.resources.dll
----------------------------------------
System.Xml.Linq
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.1 built by: RTMRel
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
accoremgd
    程序集版本: 19.0.0.0
    Win32 版本: 19.0.55.0.0
    基本代码: file:///F:/360云盘/CAD/STUDY/最新/bin/Debug/accoremgd.dll
----------------------------------------
ManagedMC3
    程序集版本: 6.4.0.0
    Win32 版本: 6.4.0.0
    基本代码: file:///C:/Program%20Files/Autodesk/AutoCAD%202013/ManagedMC3.DLL
----------------------------------------
AcWindows
    程序集版本: 19.0.0.0
    Win32 版本: 19.0.55.0.0
    基本代码: file:///F:/360云盘/CAD/STUDY/最新/bin/Debug/AcWindows.dll
----------------------------------------
AcLivePreviewContext
    程序集版本: 0.0.0.0
    Win32 版本: 19.0.55.0.0
    基本代码: file:///C:/Program%20Files/Autodesk/AutoCAD%202013/AcWindows.dll
----------------------------------------
AcLivePreviewContext
    程序集版本: 0.0.0.0
    Win32 版本: 19.0.55.0.0
    基本代码: file:///F:/360云盘/CAD/STUDY/最新/bin/Debug/AcWindows.dll
----------------------------------------
System.Windows.Forms
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.1001 built by: RTMGDR
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Windows.Forms.resources
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.1 built by: RTMRel
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。

例如:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

启用 JIT 调试后,任何未经处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。
发表于 2016-4-20 10:54 | 显示全部楼层
发表于 2016-5-3 23:28 | 显示全部楼层
谢谢!不错。
发表于 2016-5-6 12:49 | 显示全部楼层
谢谢分享,正准备入手学习
发表于 2017-10-31 20:25 | 显示全部楼层
正在研究C#  先顶
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-4-27 09:55 , Processed in 0.557508 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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