Insertblock Method changes in A2k2

Insertblock Method changes in A2k2

Anonymous
Not applicable
285 Views
4 Replies
Message 1 of 5

Insertblock Method changes in A2k2

Anonymous
Not applicable
Is it possible modify the source code in the class modules of my DLL so as
to determine the version of AutoCAD. Since there have been changes to the
Insertblock method among others, I want to be able to do something like
this:

If AutoCAD version is 2002 then
call insertblock method with Z scale factor
else
call insertblock method without Z scale factor
end if

Dale
0 Likes
286 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
I got it.
application.version. duh.

Dale
0 Likes
Message 3 of 5

Anonymous
Not applicable
Ok, there is still a problem. I have to reference only one AutoCAD object
library with the DLL. When I try to compile the DLL, whichever one of the
code branches that disagrees with the referenced library generates a "wrong
number of arguments" error.

Is there any way around this?

Dale
0 Likes
Message 4 of 5

Anonymous
Not applicable
I got around this by using late binding.
Not a great way but it worked
0 Likes
Message 5 of 5

Anonymous
Not applicable
I geuss thats about the only way. Thanks Mike.
0 Likes