Can I save a selection?

eivber
edited April 20 in BricsCAD BIM

I want to select only single doors, I tried using SELECTSIMILAR, but even when its set to only select entities with similar Name, it selects all doors, even if they have a different Name, this does not seem to happen when using it on 2D blocks.

If I manually select the entities I want, can I save the selection for later use so that I dont have to manually select them again?

Comments

  • At the command line, enter (setq doors1 (ssget))
    Select all the single doors, then Enter.
    Any time you want to select all the single doors again, just use !doors1.
    e.g. Move_!doors1_ or Selgrips_!doors1_

    That will only work while the drawing remains open.
    You can use any name instead of doors1.

    To add to the selection set: use Selgrips_!doors1_ and then select whatever you want to add, and then enter (setq doors1 (ssget))

  • Thanks for the tip, it works fine, at first I guess I`ll forget the commands until I`ve used them a couple of times.

    Strange if there is no easier way to save selections.

  • Groups are saved selection sets.

  • thank you! I will try it out, sounds like what I'm looking for.

  • quote: I guess I`ll forget the commands until I`ve used them a couple of times

    You could make a pull-down menu command that does each of those things.
    - Pull down Tools > Customize...
    - Select the Menus tab.
    - In the left pane, right-click on a menu and select Append item, or right-click on an item and select Insert item.
    - In the pop-up, select the Create new tool radio button, then fill in whatever you want for the Title, and the following for the Command:
    - For the command that creates the saved selection set: (setq doors1 (ssget))
    - For the command that re-selects it: ^c^c_selgrips;!doors1;;

  • eivber
    edited April 21

    clever! Haven't tried this before, will give this a shot to 😊

  • Anything that's repetitive and tedious can be automated with menu commands, toolbar tools, and lisp-based custom commands. For example, I very often want to rotate things 90, 180, or 270 degrees. So I have a custom command that rotates the selection set 90° for each press of a certain function key.