Unhandled Exception opening AutoCad
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Unhandled Exception opening AutoCad

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
irfan
Guest





Posted: Mon Dec 13, 2004 3:04 pm    Post subject: Unhandled Exception opening AutoCad Reply with quote

hi,
I am using the below mentioned code to open acad, _____________________________________
imports Autocad
Imports System.Runtime.InteropServices
Try
acadApp = Marshal.GetActiveObject("AutoCAD.Application")
Catch
Try
acadApp = New AcadApplicationClass()
Catch
Throw
End Try
End Try
_______________________________________

It worked fine however since yesterday it gives the following error. I created a new project and tried only this code to check if i have changed something in my project, but it still gives the same error. Here is the error.
______________________________________
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in collection.exe
Additional information: Server execution failed
______________________________________

Can soomeone guide me please what is wrong and how to correct it.

Irfan

Back to top
irfan
Guest





Posted: Mon Dec 13, 2004 3:49 pm    Post subject: Re: Unhandled Exception opening AutoCad Reply with quote

ignore this, i have sorted it anyway.
Acad licence file was no available on my system and therfore acad was not available.

irfan
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB