Jump to content

Recommended Posts

Posted

Hi, I would like to perform a cumulative selection of a series of objects that I select in different ways, I'll give you an example:
- I select a series of texts using the property that they have the same height
- I select a series of lines using the property that they are on the same layer
- I select a series of hatches using the property that they have the same style
- I select a series of blocks using the property that naoo the same name.

Usually I solve it by moving what is selected for each of the previous points to another position in the file and then copying the set produced, but is there a simpler way?

Greetings

Posted

Hi, to select sets of elements with the same characteristics, you can use AutoLisp.
For example, if you want to select text with a height of 5: (ssget "x" '((0 . "TEXT") (40 . 5)))
For lines that are, for example, on layer "0":
(ssget "x" '((0 . "LINE") (8 . "0")))
Once you have the selection set selected, you can manipulate them with 'command'.

What do you want to do?
Copy them to the clipboard?

Posted

If so, for texts with a height of 5, type on the command line:
(command "_copyclip" (ssget "_x" '((0 . "TEXT") (40 . 5)))
and press ENTER.

If you want to use a different height as a filter, change the 5 to the desired value.

Posted

Part 2 you can use SSADD to combine selection sets into a single one. 

Posted

Thanks to both of you for your help.
Googling SSADD I saw some discussion pages that maybe will lead me to a ready-to-use solution, we'll see.
Regards

Posted

The method I suggested might be sufficient. In theory, after running '(command "_copyclip"...)' you'd just have to press Control+V to paste the selected objects wherever you want.

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