Using the Model Manager Search Syntax
All filters that you can apply via the Filter dialog box have an equivalent search syntax that you can write directly in the text field in the Model Manager window. This syntax is displayed under Filter query preview in the Filter dialog box.
1
Click the Reset button () to reset the search result.
2
Click the Add Filter button () and select Item Version Type ().
3
In the Filter dialog box, select the Model check box.
The expression under Filter query preview reads @itemVersionType:model. The part before the colon identifies the item field to filter on; the part after the colon is the value to filter on.
4
Select the Application check box.
The expression now reads @itemVersionType:(application OR model). The expression will match any version that is either a model or an application.
5
Select the Negate match check box under Options.
The expression reads NOT @itemVersionType:(application OR model). The expression will match any version that is neither a model nor an application.
6
Click Cancel to close the dialog box without applying the filter.
You can try out the Model Manager search syntax in the text field.
1
Write @itemVersionType:fileset and click Search.
The search result only contains filesets. The part before the colon is case insensitive — writing @itemversiontype:fileset yields the same result.
2
Write @itemversiontype:fileset AND @filetype:asm and click Search.
The search result contains all filesets containing a data file with a CAD assembly file extension. Spaces are automatically interpreted as Boolean AND so you can leave out the AND symbol in this case.
3
Write @itemversiontype:fileset @filetype:asm @title:busbar and click Search.
The search result only contains CAD assemblies with busbar in their title.
The search syntax can also be used for searching model contents. You can, for example, find the wrench model with the node comment. Write
@node{@comment:(component structural integrity wrench)}
and click Search. The Stresses and Strains in a Wrench model () is again the sole match in the search result.
You may have noticed that these steps did not specify that the comment should appear in a 3D component node. Write
@component{@spacedimension:3 @comment:(component structural integrity wrench)}
and click Search. The result is the same. Change the space dimension value to 2 and verify that you no longer get any matches.
A full treatise of the capabilities of the Model Manager search syntax is well beyond the scope of this tutorial. You can, for example, write nested search expressions that specify that only models with a specific component space dimension, such that the component itself contains a particular material and physics interface, should match.