hosyn Posted July 5, 2014 Share Posted July 5, 2014 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 lisp select objects and copy in certain displacement Any help please. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted July 5, 2014 Share Posted July 5, 2014 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. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted July 5, 2014 Share Posted July 5, 2014 ? (if (setq s (ssget "_:L")) (command "_.copy" s "" "_d" "_non" '(100.0 0.0 0.0)) ) Quote Link to comment Share on other sites More sharing options...
hosyn Posted July 6, 2014 Author Share Posted July 6, 2014 ThanxXXXXXXXXXX a lot Mr lee that's ok and if i wanna delete the origin objects store in s at (setq s (ssget "_:L")) after the ranning code I added the (command "_erase" s) but dont do well it ,any suggestion?? Quote Link to comment Share on other sites More sharing options...
7o7 Posted July 6, 2014 Share Posted July 6, 2014 You miss an "". Should write (command "_erase" s "") An "" is like an Enter at the command line. Quote Link to comment Share on other sites More sharing options...
asos2000 Posted July 6, 2014 Share Posted July 6, 2014 ThanxXXXXXXXXXX a lot Mr lee that's ok and if i wanna delete the origin objects store in s at (setq s (ssget "_:L")) after the ranning code I added the (command "_erase" s) but dont do well it ,any suggestion?? I belive that it is better to use MOVE instead of copy then delete. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted July 7, 2014 Share Posted July 7, 2014 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.