hosyn 发表于 2022-7-5 22:48:54

What's the problem in my

What's the problem in my code, i wanna to copy object with displacement 100

(command "copy" "d" "100")
Indeed when i run the command lispselect objects and copy in certain displacement
Any help please.

BIGAL 发表于 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.

Lee Mac 发表于 2022-7-5 23:18:20

?
(if (setq s (ssget "_:L"))   (command "_.copy" s "" "_d" "_non" '(100.0 0.0 0.0)))

hosyn 发表于 2022-7-5 23:19:38

ThanxXXXXXXXXXX a lot Mr lee that's ok and if i wanna delete the origin objects store in sat
(setq s (ssget "_:L"))after the ranning codeI added the
(command "_erase" s) but dont do well it ,any suggestion??

7o7 发表于 2022-7-5 23:35:10

You miss an "".
Should write (command "_erase" s "")
An "" is like an Enter at the command line.

asos2000 发表于 2022-7-5 23:46:59

 
I belive that it is better to use MOVE instead of copy then delete.

BIGAL 发表于 2022-7-5 23:58:29

Hosyn have a think about 3 little lispschx 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.
页: [1]
查看完整版本: What's the problem in my