乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 94|回复: 5

[编程交流] Error: Too few arguments ?

[复制链接]

1

主题

3

帖子

2

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-5 23:18:20 | 显示全部楼层 |阅读模式
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
回复

使用道具 举报

63

主题

6297

帖子

6283

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
358
发表于 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 .
 
  1. (defun C:sw ([b][color=blue]/[/color][/b] sw)
回复

使用道具 举报

63

主题

6297

帖子

6283

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
358
发表于 2022-7-5 23:44:51 | 显示全部楼层
One more thing I have just noticed , one variable is missing as shown below .
 
  1. (while (> 10000 [color=red]baþsayý[/color])
 
And what 's this variable ( sw ) ? it is not assigned into your routine .
回复

使用道具 举报

1

主题

3

帖子

2

银币

初来乍到

Rank: 1

铜币
5
发表于 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"
回复

使用道具 举报

1

主题

3

帖子

2

银币

初来乍到

Rank: 1

铜币
5
发表于 2022-7-6 00:09:27 | 显示全部楼层
By the way "/sw" solved the problem , many thanks to you
回复

使用道具 举报

63

主题

6297

帖子

6283

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
358
发表于 2022-7-6 00:24:57 | 显示全部楼层
 
You're welcome
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-11 00:22 , Processed in 1.090615 second(s), 64 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表