LISP or VB
LISP or VB
(OP)
I am just begining to code a routine in LISP ACAD R14.
I get an error using the midpoint on a line function;
(plt p1,p2,0.5)
Error message is "Invalid dotted pairs".
LISP seems over parenthesized and ilogic (but must work).
I bought VB6 and have programmed for 25 years but ACAD interfacing is new challenge for me.
If you've experienced both, would you suggest VB or LISP interfacing ?
I get an error using the midpoint on a line function;
(plt p1,p2,0.5)
Error message is "Invalid dotted pairs".
LISP seems over parenthesized and ilogic (but must work).
I bought VB6 and have programmed for 25 years but ACAD interfacing is new challenge for me.
If you've experienced both, would you suggest VB or LISP interfacing ?





RE: LISP or VB
I wonder if the commas are to be in between
p1, p2, and 0.5.
I have not lisped for awhile but the line
looks strange to me.
I think they should be separated only by a
space which is equivalent to a comma.
RE: LISP or VB
I just realized that you are working with R14. This was AutoCAD's early attempt to include a VB API. Writing VB programs for R14 is more complex that in 2000 or 2002. It can still be done, but the later releases have the VB feel to them. If you are going to write appplications that are going to be around for a while, I would suggest that you upgrade before writing any programs. Programs for R14 will work in later releases, but you will be learning techniques that are not required in the new version.
I hope this helps a bit! If you need some sample code, you found the right forum.
DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.
RE: LISP or VB
(foo "catch" 22 31)
dsi is right - VBA is a better investment, especially from Acad2000 onwards.