AutoLISP 2000i compatability

Discussion in 'AutoCAD' started by DanFSD, Dec 26, 2003.

  1. DanFSD

    DanFSD Guest

    I have written and used an AutoLISP routine for seismic bracing. I wrote it in 1994 using R13. I have other that I wrote circa 1994 that work fine in 2000i. This one does not. It is large for a LISP routine. At the opening disclaimer, 2000i gives "error: too many arguments" after displaying the words "....regarding these materials and makes such materials". Then the routine stops. I would appreciate it if some on could look at my code and point out what needs to be corrected for it to work in 2000i.
    Thank you.
     
    DanFSD, Dec 26, 2003
    #1
  2. DanFSD

    Jeff Mishler Guest

    Dan,
    There are 2 lines in your code which have more than 1 argument, such as:
    (prompt "blah blah" l1 "blah blah")
    both of these need to be of the form:
    (prompt (strcat "blah blah" l1 "blah blah"))
    also, in both of these lines the var that is being referenced is not being
    set prior to calling it, so I'm not sure if it is even necessary.

    HTH,
    Jeff

    it in 1994 using R13. I have other that I wrote circa 1994 that work fine in
    2000i. This one does not. It is large for a LISP routine. At the opening
    disclaimer, 2000i gives "error: too many arguments" after displaying the
    words "....regarding these materials and makes such materials". Then the
    routine stops. I would appreciate it if some on could look at my code and
    point out what needs to be corrected for it to work in 2000i.
     
    Jeff Mishler, Dec 26, 2003
    #2
  3. DanFSD

    Murph Guest

    Looks like it got opened in some appicaltion and it added some charaters
    that it shouldn't of.
    Here are two lines that I found

    (PROMPT "\navailable solely on an " l1 " basis.")
    Delete the "l1" (the "" also)

    and on this line
    (PROMPT "\n WU (Wood U bolts) " l@l " Bolts in Wood Construction"
    delete the " l@l " (quoations marks too)

    With out having all the blocks it inserts I can tell if it works all the way
    or not.

    Murph

    it in 1994 using R13. I have other that I wrote circa 1994 that work fine in
    2000i. This one does not. It is large for a LISP routine. At the opening
    disclaimer, 2000i gives "error: too many arguments" after displaying the
    words "....regarding these materials and makes such materials". Then the
    routine stops. I would appreciate it if some on could look at my code and
    point out what needs to be corrected for it to work in 2000i.
     
    Murph, Dec 26, 2003
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.