Jump to content

break into rectangle help...


Recommended Posts

hello people:

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


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

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






any help is good

Link to comment
Share on other sites

Posted (edited)

@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

what I want is to break the lines and delete what remains inside that rectangle

Link to comment
Share on other sites

This can be done by EXTRIM command in the Expresstools if I understand your concern correctly.

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.

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