Problem in invoking Autocad ActiveX Control in Vista

Problem in invoking Autocad ActiveX Control in Vista

Anonymous
Not applicable
805 Views
5 Replies
Message 1 of 6

Problem in invoking Autocad ActiveX Control in Vista

Anonymous
Not applicable
HI,

OS: Vista Home Pre
AutoCAD 2006

i am not able to initialize AutoCAD Instance using Activex Control.

please suggest.
0 Likes
806 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
The suggestion I can make is to describe your situation more completely.

What is the ActiveX Control?
Where does the ActiveX Control live in? Or what type of application you are
doing?
What does "initialize AutoCAD" mean and how do you do it (at least some
code)?


"mindhunter" wrote in message news:5977931@discussion.autodesk.com...
HI,

OS: Vista Home Pre
AutoCAD 2006

i am not able to initialize AutoCAD Instance using Activex Control.

please suggest.
0 Likes
Message 3 of 6

Anonymous
Not applicable
CODE:
Public ObjDoc As AcadDocument
Public ObjApp As AcadApplication

Public Function InitialiseAutoCAD() As Boolean
Try
ObjApp = CreateObject("AutoCAD.Application")
ObjDoc = ObjApp.ActiveDocument


Catch ex As Exception
MsgBox("AutoCAD Application Not Initialised", MsgBoxStyle.Critical, ProjectName)
Return False
End Try

Return True

End Function

on windows vista platform "ObjApp" not intialized......

i am making program on Autocad customization using vb.net

when i run application on vista ..........

i get msg {"Cannot create ActiveX component."} System.Exception
0 Likes
Message 4 of 6

Marco_Caprez
Enthusiast
Enthusiast
I have the same problem here. It works if you do:

CreateObject("AutoCAD.Application.17.2")
for AutoCAD2009

CreateObject("AutoCAD.Application.17.1")
for AutoCAD2008

But I don't know why that's so.

Cheers, Marco
0 Likes
Message 5 of 6

Anonymous
Not applicable
thanks
for reply

my autocad version 2006
CreateObject("AutoCAD.Application.16")
this code i also tried...
main problem with OS : Windows Vista.....
basically i looking for patch for update for Autocad2006 for vista
0 Likes
Message 6 of 6

Anonymous
Not applicable
mindhunter wrote:

> main problem with OS : Windows Vista.....
> basically i looking for patch for update for Autocad2006 for vista

Don't hold your breath while looking.

The first AutoCAD version built for Vista is 2008. There was some patch
for 2007, but in some message in these groups some Autodesk people gave
the impression that they have no plans of ever producing a compatibility
patch for Vista for 2006.

(You might manage with full admin rights, disabling all Vista security
etc, but that isn't a reasonable production environment.)

--
0 Likes