×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

LISP or VB

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 ?

RE: LISP or VB

ctruax,

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 have not programmed in LISP for a while. It is quite powerful but somewhat cryptic. VB is easier to read and is more suited for large applications. If you are just going to write a small utility, I would use VBA (inside of AutoCAD) or LISP. If you are writing a larger application, especially with user forms, I would suggest creating an executable in VB. Since you already have that much experience with VB, learning the AutoCAD API will be a breeze.

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

Diamond is right - no commas between arguments in Lisp function calls
(foo "catch" 22 31)

dsi is right - VBA is a better investment, especially from Acad2000 onwards.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources