I want to use Sellayer command without any dialog. for which i assigned a command macro: (_-Sellayer _Enter) but it didnt select anything.
I set it like this: “!-_SelLayer P”
i want to first select objects in viewport and then execute the command, basically i want the same behaviour of Sellayer but just press enter automatically so dialog box disappears.
it will feels like extending the selection. just like “Selectsimilar” in autocad.
I think you can use _pause to request the user selection and pre selection of the layer.
The script should look like:
!-_sellayer _pause _enter
Pay attention to spaces.