Jump to content

break into rectangle help...


leonucadomi

Recommended Posts

hello people:

can someone help me to improve this or if there is another way.

please.

the purpose is to create a rectangle and delete everything that is inside and then delete the rectangle.

I would like to just create the rectangle and delete what is inside and at the end the rectangle disappears

(defun c:test ( /  )
(command "_rectangle" "\\" "\\")

(setq ent1 (entsel))
(setq pt1 (getpoint))

(if
(cond
(etrim)
(T (load "extrim.lsp" "") etrim)
)
(etrim (car ent1) pt1)
)
(setvar "HIGHLIGHT" 1)
(command "_erase" ent1 "")
   )

 

image.thumb.png.d5baa32828a2dbb2f6d2a72a50e2e37b.png

 

image.png.e2418d2232d6bf20bd73d3cd032b3f7a.png

 

any help is good

Link to comment
Share on other sites

@leonucadomi Instead to make the rectangle , you can do a  Window or Cross selection , and erase windowed or crossed entities.

 

Window from down left to up right 

or cross from upright to left  down 

 

 

Edited by devitg
add comment
Link to comment
Share on other sites

So a break lines with a gap size ? Pick a point say top line use perp pick bottom line then gap, all done. Is that what you want ? Gap is based on pick point so say MID could be used for a left and right of middle of a line.

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