Jump to content

What's the problem in my code???


hosyn

Recommended Posts

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.:?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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??:unsure:

Link to comment
Share on other sites

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??:unsure:

 

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...