Jump to content
Xelathrone

Error: Too few arguments ?

Recommended Posts

Xelathrone

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?

bw.lsp

Share this post


Link to post
Share on other sites
Tharwat

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 .

 

(defun C:sw ([b][color=blue]/[/color][/b] sw) 

Share this post


Link to post
Share on other sites
Tharwat

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

 

 (while (> 10000 [color=red]baþsayý[/color])

 

And what 's this variable ( sw ) ? it is not assigned into your routine .

Share this post


Link to post
Share on other sites
Xelathrone

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"

Share this post


Link to post
Share on other sites
Xelathrone

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

Share this post


Link to post
Share on other sites
Tharwat
By the way "/sw" solved the problem , many thanks to you :D

 

You're welcome :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×