Run an Advanced Search for Specific Attributes
You can search for specific attributes such as the color or the diameter of an object. You can also combine search criteria to run more complex queries.
- Press Ctrl+F.
- In the Find dialog box, click the Advanced tab.
- In the App list, select the Product Structure package.
-
In the
Attribute list, select an attribute.
If you are searching for a character string whose value is empty, leave the box in the Attribute Criterion dialog box empty to have the following query syntax:
''.type.attribute=
where:
- '' is the package in which you are performing your search.
- type is the type of the object containing the string you are searching for.
- attribute is the attribute containing the empty string.
For example:
'Product Structure'.Product.Product Description=
- Click OK, and then click the operating sign of your choice (And, Or, Except) to combine several search criteria and refine your query.
- In the Attribute list, select the Color attribute, and then choose a color.
-
Click OK, and then click Find
to
run the search.
Tip: Click Find and Select to run the search and select automatically the objects that have been found. When running a query with a color as search criterion, you can either:
- Pick a color among the 16 colors available.
- Pick a color among the 48 colors available by default in the Basic Color area of the Color chooser. The Color chooser is displayed when you click More Colors... at the end of the list.
- Pick a color among the 16 custom colors available in the Custom Colors area of the Color chooser.
- If this color is one of the 48 colors available by default, enter its name directly in the Composed query box.
- From the list, select a package, and then a type.
-
Select an attribute for the type, and then enter a value.
Depending on the attribute you select, the Attribute Criterion dialog box:
- Displays a list of attributes.
- Lets you choose a Boolean attribute (such as TRUE or FALSE) if you are searching for a threaded hole, for example.
-
Select an
operating sign from the list, and then enter a value. You can use the default value
* as a wildcard.
For example, select the = operating sign and the value 4mm; 10mm to search for any element whose diameter is comprised between 4mm and 10mm.
The number of operating signs displayed in the list depends on the attribute you chose. Below is an exhaustive list of the available operating signs:
- =
- != (different)
- <
- <=
- >
- >=
-
To modify the query, enter a new query in the editor.
For example:
'Part Design'.Sketch.name!=*2, or 'Part Design'.Sketch - name=*2
Means that you search for all sketches except those whose names end with 2.
Another example:
'Part Design'.Hole.name=*1 & 'Part Design'.Hole.Diameter<50mm
Means that you search for all holes whose names end with 1 and whose diameters are lower than 50 mm.
Tip: - You can add brackets, and group queries together.
- You can copy one of the above-detailed queries, paste it directly to the query editor, and then start the search.
-
Click OK, and then click Find
to
run the search.
Important: If you select the Drafting package, you can search for specific attributes (such as dimensions), or elements of type Geometry (such as 2D lines or 2D curves). See Drafting User's Guide: Working with Annotations: Performing an Advanced Search for more information.