Create a dll for any version of Autocad

Create a dll for any version of Autocad

Anonymous
Not applicable
289 Views
1 Reply
Message 1 of 2

Create a dll for any version of Autocad

Anonymous
Not applicable
Hello
I need to create a dll that will run in any version of Autocad (2000 to 2009) using vba in Autocad Builder 2006 OR VB 6.0. What do I need to
be able to do this? What is the process?

ThankYou
0 Likes
290 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Well, to use 'generic' access, you'd have to use late binding in OLE. Translation: you have to declare everything as generic objects.

What I like to do is have a copy of the *earliest* version you want compatability for (in your case, 2000), and develop "normally" using 'early binding" (putting a reference to autocad in your code , which will give you the "intellisense" in VB/VBA. Then, once the code is done, remove the reference to Autocad, and change all the autocad references (Thisdrawing, AcadLine, etc, to "Object")

To check for the current autocad version, check the registry at HKEY_CLASSES_ROOT\AutoCAD.Application\CurVer
0 Likes