itacad Posted December 19, 2024 Posted December 19, 2024 Hi, there are several ways to perform a search and subsequent selection of objects, you can do it with the Find command or with Filters, with some Express Tool commands and even with Lisp. Sometimes it is laborious to build research methods and it is boring to have to redo them several times. Sometimes selecting objects is done simply by clicking the mouse on defined objects. Other times the selection of objects is done cumulatively using various systems. I ask if it is possible, once a search has been performed and the objects have been selected, to "save" this selection. Let me give you an example: in a file I select some blocks, an xref, some texts which are obviously different objects, on different layers, but they could be associated with a common theme and it would be convenient to reselect them based on a history. Thanks for any suggestions Quote
BIGAL Posted December 19, 2024 Posted December 19, 2024 If its only in the one session then just save any selection with a name using lisp (setq myss (ssget)) then its available in a command, move !myss note the ! exclamation mark. When you use ssget you get a selection set so get entity names. <Entity name: 89f0af10>. Now the plot thickens do stuff in the dwg save close etc. Pick same object and it will have a different entity name, but all is not lost. If you look at object handle it is always the same value so can use that. So you could theoretically save the handles list in the dwg. You would probably need to make some form of custom data. Do a google. Quote
itacad Posted December 20, 2024 Author Posted December 20, 2024 Ok thanks, in the meantime I understand that there is nothing predisposed! I will try to do some research as you suggest. Greetings Quote
itacad Posted December 20, 2024 Author Posted December 20, 2024 It could be a great idea! https://help.autodesk.com/view/ACADWEB/ITA/?guid=GROUP_COMMAND 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.