乐筑天下

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

[编程交流] ucs-programming

[复制链接]

8

主题

25

帖子

17

银币

初来乍到

Rank: 1

铜币
40
发表于 2022-7-5 23:53:22 | 显示全部楼层 |阅读模式
(defun c:ucsmen()
(setq pt1 (getpoint "\npick new orgin"))
(setq Pt2 (getpoint "second point") )
(setq Pt3 (getpoint "third point" ) )
(command "_ucs""3"Pt1 Pt2 Pt3 )
)   
 
 
i am new to autolisp..the error coming after loading is "ucsmen Unknown command "UCSMEN".  Press F1 for help."
 
this lisp is to set ucs by clicking on screen
please help.
 
thanks in advance
回复

使用道具 举报

63

主题

6297

帖子

6283

银币

后起之秀

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

铜币
358
发表于 2022-7-6 00:09:59 | 显示全部楼层
Try this ...
 
  1. (defun c:ucsmen (/ pt1 pt2 pt3) (if (and (setq pt1 (getpoint "\n pick new orgin :"))          (setq Pt2 (getpoint "\n second point :" pt1))          (setq Pt3 (getpoint "\n third point :" pt2))     )   (command "_ucs" "3" "_none" Pt1 "_none" Pt2 "_none" Pt3) ) (princ))
回复

使用道具 举报

8

主题

25

帖子

17

银币

初来乍到

Rank: 1

铜币
40
发表于 2022-7-6 00:23:41 | 显示全部楼层
thanks its working
回复

使用道具 举报

63

主题

6297

帖子

6283

银币

后起之秀

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

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

使用道具 举报

4

主题

2143

帖子

2197

银币

限制会员

铜币
-24
发表于 2022-7-6 00:53:45 | 显示全部楼层
Please read the Code posting guidelines and edit your post to include the Code in Code Tags.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-10 21:02 , Processed in 0.497759 second(s), 62 queries .

© 2020-2025 乐筑天下

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