PDA

View Full Version : Open AutoCAD 2002 or 2006 from COM


mbasa
03-02-2006, 07:45 AM
Hello friends,

I have to prepare my programs once for AutoCAD 2002 and once for 2006, I installed both but everytime I run program 2006 is working.

I am preparing external programs that communicate with AutoCAD from Com interface.

Do you have any idea how can I lunch AutoCAD 2002 or 2006 according to my choice from COM interface???


Thankss

TCARPENTER
10-02-2006, 06:48 PM
Hi mbasa,

This used to work for launching various versions of AutoCAD:


Set AcadApp = CreateObject(,"AutoCAD.Application.15") ' (for 2002)
' or
Set AcadApp = CreateObject(,"AutoCAD.Application.16") ' (for 2004)


HTH
Todd

mbasa
11-02-2006, 07:04 AM
oohh great thankss a lot

cadfael
19-04-2006, 05:23 AM
I believe the CreateObject function returns an Object type, which I generally like to avoid. There must be an "AutoCAD" type of some sort in the references that allows the intellisense to work. I have 2k4. Anyone know about this?

cadfael
19-04-2006, 06:40 AM
acax16enu.tlb

Does anyone know about Cadfael the sort of medieval detective? He'd of figured it out before I did.