Jump to content

How erase blocks from specified coordinate


Aarer

Recommended Posts

Hi

 

I have 800 files where all text fields in the drawing (about 10-20 text/block in every file) copied from the same block.

I need to delete 5 block from the all drawings and these blocks located exactly in the same xy coordinates. I cant delete these blocks by name because all 20 blocks in same drawing have same name.

I need lisp routine - delete block with name _TXT_ from location X_cord1; Y_cord1 and X_cord2; Ycord2 and so on.

Maybe someone know some solution.

Link to comment
Share on other sites

You can use SSGET with filters and use a small "W" window

this is a bit of a guide of how to

 

 (setq ss1 (ssget "W"  '((0 . "INSERT") (2 . "blockname")) x1,y1 x1,y1 x2,y2 x2,y2)) ; just add all the pick windows
then loop through the selection set and erase each entity

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