PDA

View Full Version : AutoCAD 2005 and VB6



cwhitaker
2004-06-18, 03:50 PM
We are getting ready to upgrade our CAD software to 2005. I was wondering if VB6 would still work with 2005 or do i need to upgrade to VB.net?

Ed Jobe
2004-06-18, 05:20 PM
VBA is still ver 6. There is no ide for .NET, however, there is now direct support for .Net.

Prior to 2005 when you added a reference to the acad type library the
framework created an interop assembly. Now with 2005 two primary interop
assemblies created by adesk are installed into the GAC. When you reference
the acad type libraries the framework actually references these PIA's.
These PIA's define the new namespaces that you are seeing.

Other than the "AutoCAD 2005 Type Library", you also need to set a reference
to "AutoCAD/ObjectDBX Common 16.0 Type Libary". This will add the
autodesk.autocad.interop.common namespace that contains the rest of the
classes that you are looking for.

HTH
--
Bobby C. Jones