Quick Select For Autocad For Mac
EDIT: New update available for Quick Select. Some bug fixes when selecting blocks by name. Please download new version of SSS routine SSS-V1.2.zip. For those who have difficulties with downloading via Google Documents here is alternative link SSS.fas-v1.2.zip
EDIT: I have added ability to select dynamic blocks by name in drawing. Now, if you select “Name” option, while searching Block object, and pick dynamic block, my routine will select all instances of this dynamic block in a drawing file. Please download new version of SSS routine SSS-V1.1.zip.
The ability to create selection sets of objects based on some filtering criteria is very essential for editing process in AutoCAD. As you know, QSELECT command is unavailable in current version of AutoCAD for Mac. Instead you can use SELECTSIMILAR command. But it is limited in its capabilities, since it does not allow you to create complex search criteria (for example “object type” + “object properties”).
So, I want to present you simplified command line version of QSELECT for AutoCAD for Mac: SSS. With this command you can create a selection set of objects based on filtering criteria. SSS filters selection sets by object type and property. For example, you can select all of the multiline text objects in a drawing that use a specified text style.
My program based on initial code, that was created by V. Levin in 1997. I have found it on one of Bicscad forums, and made some modification to program code:
– redesigned process of creation of initial object selection;
– objects remains selected after program completion,
– added support for LWPOLYLINES;
– added Dimtext search option for dimensions;
– added selection of the color via standard dialog box;
– command prompts updated for use with Dynamic input.
How it works.
1. First you select objects (or area of drawing) to search in. Or you can just hit Enter (Return) key to select all objects in model space or in layout.
Select objects for filtering (<Enter> - select all objects): Select objects:
2. Next you will be prompted to select first search criteria – object type:
Search for - Text/Attdef/PLine/LIne/Circle/Point/Block/<ALL> - or PICK:
– type capitalized letters (or whole words) for Text (T), Attribute definition (A), Polyline (PL), Line (LI), Circle (C), Point (P) or Block (B);
– hit Down Arrow key to open list, from which you can select predefined type of object (if you have Dynamic Input enabled);
– hit Enter key to select all types of objects in drawing;
– pick an object on screen to define type of object automatically (this is my favorite one).
3. After you select object type, you will be prompted to select next search criteria – object properties. For all type of objects you will get prompt:
Search under what criteria - Layer/LType/Color/Elevation/<ALL>:
– type name of criteria (or just capitalized letters): Layer (L), Linetype (LT), Color (C), Elevation (E);
– hit Down Arrow key to open list, from which you can select search criteria (if you have Dynamic Input enabled).
4. If you select “Layer”, you will be prompted for layer name:
Layer name / <PICK>:
– type layer name (you can also use wildcards, for example if you type W* – all layers in the drawing that begins with “W” will be used as criteria);
– hit Enter and then pick an object on the desired layer (again – my favorite).
Procedure for “Linetype” is the same.
5. If you select “Color” – you will be prompted for choice:
a. Select Dialog (or type “D”) to open Color Palette dialog where you can select desired color. If you pick “Cancel” button in this dialog, you will be prompted to select object with desired color from drawing.
b. Hit Enter key to select object with desired color from drawing.
6. If you select “Elevation” you will be prompted to pick two points on screen to define Elevation value, or if you hit Enter key, you can select object with desired Elevation in your drawing.
In addition to standard object properties for some object types there are additional options:
– for Text object: Style (Text Style name), STring (text string), Height (height of text object), Rotation (text rotation), Width (width factor of text);
– for Attribute Definition object – same as for Text object;
– for Polyline object: Width (polyline width)
– for Block insertions: Name (block name)
– for Dimensions: Dimtext – you can search specific text overrides in dimensions, if you type “*?” (without quotes) SSS command will find all dimensions with text overrides, if you hit Enter key – it will find all dimension objects without text overrides.
Don’t forget, that for all strings (Text Style name, text string, block name etc.) you can use wildcards, for all numerical values you will get additional question (Equal, Less, Greater, etc.)
7. After you specify all parameters, QuickSelect routine will create a selection set of objects based on filtering criteria. Objects remains highlighted, so you can go further with their editing.
You can download SSS-V1.1.zip (new version with dynamic block support) or sss.fas-v1.zip here (old version), load sss.fas to AutoCAD and test it with SSS command. Feel free to leave comments and suggestions for adding additional functionality to the program.