+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Forum Newbie
    Using
    AutoCAD 2011
    Join Date
    Apr 2014
    Posts
    3

    Default Error: Too few arguments ?

    Registered forum members do not see this ad.

    Hi,

    There is a problem with my lisp. When i tried to activate it , it gives "error:too few arguements" problem. Can you help me?
    Attached Files

  2. #2
    Luminous Being Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draughtsman
    Discipline
    Mechanical
    Details
    HVAC, Drainage, Water Supply, Fire Fighting and a little about Electricity.
    Using
    AutoCAD 2015
    Join Date
    Oct 2009
    Location
    Great Syria , Living in Abu Dhabi
    Posts
    6,177

    Default

    Welcome to CADTutor .

    Firstly localize your variables then since that your routine does not need to any argument , then you should have a slash before the localized variables .

    Code:
    (defun C:sw (/ sw)

  3. #3
    Luminous Being Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draughtsman
    Discipline
    Mechanical
    Details
    HVAC, Drainage, Water Supply, Fire Fighting and a little about Electricity.
    Using
    AutoCAD 2015
    Join Date
    Oct 2009
    Location
    Great Syria , Living in Abu Dhabi
    Posts
    6,177

    Default

    One more thing I have just noticed , one variable is missing as shown below .

    Code:
      (while (> 10000 baþsayý)
    And what 's this variable ( sw ) ? it is not assigned into your routine .

  4. #4
    Forum Newbie
    Using
    AutoCAD 2011
    Join Date
    Apr 2014
    Posts
    3

    Default

    Actually when i active this lisp , it helps to numerate the welding spots increasing by 1.

    SW is socketweld , can we add SW mark before the numbers? Could it increase after clicking like "SW1 , SW2"

  5. #5
    Forum Newbie
    Using
    AutoCAD 2011
    Join Date
    Apr 2014
    Posts
    3

    Default

    By the way "/sw" solved the problem , many thanks to you

  6. #6
    Luminous Being Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draughtsman
    Discipline
    Mechanical
    Details
    HVAC, Drainage, Water Supply, Fire Fighting and a little about Electricity.
    Using
    AutoCAD 2015
    Join Date
    Oct 2009
    Location
    Great Syria , Living in Abu Dhabi
    Posts
    6,177

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by Xelathrone View Post
    By the way "/sw" solved the problem , many thanks to you
    You're welcome

Similar Threads

  1. Error: too few arguments
    By arunr_18 in forum AutoLISP, Visual LISP & DCL
    Replies: 14
    Last Post: 20th Jul 2013, 09:49 pm
  2. ; error: too few arguments
    By satishrajdev in forum AutoLISP, Visual LISP & DCL
    Replies: 5
    Last Post: 7th Feb 2013, 12:22 pm
  3. Replies: 3
    Last Post: 13th Nov 2012, 02:43 pm
  4. too many arguments error on lsp anyone know why
    By chelsea1307 in forum AutoLISP, Visual LISP & DCL
    Replies: 7
    Last Post: 17th Jun 2009, 09:34 pm
  5. Too many Arguments
    By Enigma in forum AutoLISP, Visual LISP & DCL
    Replies: 5
    Last Post: 21st Apr 2009, 07:27 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts