乐筑天下

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

[编程交流] What's the problem in my

[复制链接]

96

主题

322

帖子

234

银币

后起之秀

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

铜币
474
发表于 2022-7-5 22:48:54 | 显示全部楼层 |阅读模式
What's the problem in my code, i wanna to copy object with displacement 100
  1. (command "copy" "d" "100")
Indeed when i run the command lisp  select objects and copy in certain displacement
Any help please.
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-5 23:08:01 | 显示全部楼层
Your question is a very simple one and I am pretty sure I have suggested previously that you invest some time in learning lisp, buy a book or look at the online tutorials. It seems to me that your using the site for I can not be bothered to spend any time learning some else do the research. As a answer look at ENTSEL.
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 23:18:20 | 显示全部楼层
?
  1. (if (setq s (ssget "_:L"))   (command "_.copy" s "" "_d" "_non" '(100.0 0.0 0.0)))
回复

使用道具 举报

96

主题

322

帖子

234

银币

后起之秀

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

铜币
474
发表于 2022-7-5 23:19:38 | 显示全部楼层
ThanxXXXXXXXXXX a lot Mr lee that's ok and if i wanna delete the origin objects store in s  at
  1. (setq s (ssget "_:L"))
after the ranning code  I added the
  1. (command "_erase" s)
but dont do well it ,any suggestion??
回复

使用道具 举报

7o7

0

主题

93

帖子

93

银币

初来乍到

Rank: 1

铜币
0
发表于 2022-7-5 23:35:10 | 显示全部楼层
You miss an "".
Should write (command "_erase" s "")
An "" is like an Enter at the command line.
回复

使用道具 举报

51

主题

481

帖子

457

银币

后起之秀

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

铜币
262
发表于 2022-7-5 23:46:59 | 显示全部楼层
 
I belive that it is better to use MOVE instead of copy then delete.
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-5 23:58:29 | 显示全部楼层
Hosyn have a think about 3 little lisps  chx chy chz these do what you want moving an object in 1 plane direction. Either ask for distance or maybe have some predefined chx100 chy100 you make the pick a loop so can do repeated times and pick multiple objects. I can not post code copyrited.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-11 03:02 , Processed in 0.461735 second(s), 66 queries .

© 2020-2025 乐筑天下

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