AutoCAD Electrical General Discussion

AutoCAD Electrical General Discussion

Reply
Contributor
Nicolas.L
Posts: 13
Registered: ‎12-05-2012
Message 1 of 2 (164 Views)

Unknown C# error trying to use code from AutoCAD .NET Developer's Guide

164 Views, 1 Replies
12-13-2012 01:10 AM

Hello,

 

As it is write in the subject when I play my code I have an error that i can't fix !

I have no idea of the source of this error.

If someone can help me to fix it.

 

Regards

 

Nicolas

 

PS: attached to the mail , the code, the error and the source drawing.

Contributor
PLM3003
Posts: 11
Registered: ‎07-30-2012
Message 2 of 2 (133 Views)

Re: Unknown C# error trying to use code from AutoCAD .NET Developer's Guide

12-17-2012 07:10 AM in reply to: Nicolas.L

Hi Nicolas,

 

maybe you should post your question in the AutoCAD .NET or VB Customization forum.

 

Short und simlified: you mix ActiveX and .NET code. That is of course possible. But it seems that you create a exe and from a exe you can access AutoCAD only via ActiveX. Accessing AutoCAD via .NET/ObjectArx, you have to create a dll/arx which runs inside AutoCAD.

 

- Karl

Announcements
Manufacturing Community
The Manufacturing Community provides additional access to tips, tutorials, blogs and networking with peers.
Need installation help?

Start with some of our most frequented solutions to get help installing your software.

New AutoCAD Electrical Category!

The AutoCAD Electrical forum has moved into it's very own category page, and can no longer be found within the Additional Product Forums.