Xelathrone 发表于 2022-7-5 23:18:20

Error: Too few arguments ?

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

Tharwat 发表于 2022-7-5 23:30:40

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 (/ sw)

Tharwat 发表于 2022-7-5 23:44:51

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

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

Xelathrone 发表于 2022-7-5 23:55:55

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"

Xelathrone 发表于 2022-7-6 00:09:27

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

Tharwat 发表于 2022-7-6 00:24:57

 
You're welcome
页: [1]
查看完整版本: Error: Too few arguments ?