itacad Posted March 14 Posted March 14 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 Quote
GLAVCVS Posted March 14 Posted March 14 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? Quote
GLAVCVS Posted March 14 Posted March 14 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. Quote
BIGAL Posted March 14 Posted March 14 Part 2 you can use SSADD to combine selection sets into a single one. Quote
itacad Posted March 17 Author Posted March 17 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 Quote
GLAVCVS Posted March 17 Posted March 17 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. Quote
Recommended Posts
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.