Our standard selection techniques are useful for simple drawings however if we want more accurate selections while working on large drawing, ’SelectionFilter’ is a best option.
Here is the procedure to create a simple selection filter:
- Type ‘SelectionFilter’ in command line.
- In dialog box, select entity that you want to select from graphics area (e.g. Arc) using dropdown list in Filter type, click on Add button and ok. (By Default it selects 'And' as initial opearator,we can change it, if we want any other operator before selecting 'Filter Type.')
- Dialog box will close and command window will prompt to select entities.
- Select all entities using window selection.
And see only Arc has been selected. You can save this filter using ‘Save’ tab in Selection Filter dialog box for future use.
Below is the list of operators that can be used while creating complex filters;
|
AND |
Entities that meet all to conditions |
Lines on the TEST layer |
|
OR |
Entities that meet any of the condition |
All Lines and all entities on the TEST layer |
|
NOT |
Entities that don’t meet any condition |
If applied to the entity=Line |
|
XOR |
Entities that meet one or the other condition, but not both |
Lines not on the TEST layer and non-Lines on the TEST layer
|
Below operators can be used if you need to specify value; (e.g.radius,diameter)
|
* |
Equal to any value |
|
= |
Equal to |
|
!= |
Not equal to |
|
> |
Greater than |
|
>= |
Greater than equal to |
|
< |
Less than |
|
<= |
Less than equal to |
Let’s try creating one complex filter;
Suppose we want to select only Red and Green colored lines on the screen. So this is how we can achieve this using ‘SelectionFilter’.
- Type ‘Selectionfilter’ in command window.
- In the dialog box, go to ‘Filter type’ and select ‘Line’ from drop down and click ‘Add’ button.
- Select ‘Or’ for Operator and click ‘Add’ button.
- Go to Filter type and select ‘Color’.
- Click Add button and select Color=Red.
- Repeat above step for Green color and click Ok.
Follow the command prompt and DraftSight is ready to select the specified entities.
