Searching Using Predefined Favorites with the Search Language

You can search for objects using predefined favorite queries that you run by entering specific shortcuts. You cannot modify or delete predefined favorite queries that do not deal with V5 objects.

The shortcuts used to run these predefined queries search "Everywhere". But if you choose scr as Visible on screen option and Replaces scope defined in favorite queries in the Default Search Scope for Power Input area, then the queries search for visible elements only.

See Also
Running a Search through Power Input
  1. Use the appropriate shortcut.

    Shortcut Full Text Description
    * t:*,all Searches for all objects everywhere that is, in the whole tree from top to bottom.
    *PLN .Plane,all Searches for all planes everywhere.
    *SUR .Surface-.Plane,all Searches for all surfaces (except planes) everywhere.
    *FAC .Face,all Searches for all topological faces everywhere.
    *VOL .Volume,all Searches for all volumes everywhere.
    *LN .Line-.Sketcher.Line,all Searches for all lines (except Sketcher) everywhere.
    *PT .Point-.Sketcher.Point,all Searches for all points (except Sketcher) everywhere.
    *CRV .Curve-.Line-.Sketcher.Curve,all Searches for all curves (except Sketcher and lines) everywhere.
    *SKT .Sketch,all Searches for all sketches everywhere.
    *AXS .Axis System+.AbsoluteAxis,all Searches for all axis systems (including Sketcher) everywhere.
    *FTA .Functional Tolerancing & Annotation Element Searches for all 3D Tolerancing & Annotation elements everywhere.

    For example, to search for all sketches everywhere, enter the appropriate shortcut after the prefix used to run favorite queries:

    Shortcut
    f:*SKT
    f=*SKT
    favorite:*SKT
    favorite=*SKT

    Tip: If you select f: as favorite: in the Default Prefix for Power Input list, you do not need to enter the prefix before the shortcut. You enter *SKT to search for all sketches everywhere.

    Predefined shortcuts are available to search for elements having a characteristic in common with the element you select.

    Shortcut Description
    *COL Searches for all objects with the same color as the selected object.
    *LAY Searches for all objects included in the same layer as the selected object.
    *LNW Searches for all lines with the same thickness as the selected object.
    *LNT Searches for all lines with the same linetype as the selected object.
    *PTT Searches for all points with the same point type as the selected object.
    *PRT Searches for all objects included in the same part as the selected object.
    *PBD Searches for all objects included in the same part body (or hybrid body) as the selected object.
    *GST Searches for all objects included in the same geometrical set as the selected object.
    *OGS Searches for all objects included in the same ordered geometrical set as the selected object.

  2. To run a predefined favorite query involving a selection, select the object before or after entering the appropriate shortcut.

    For example, to search for all objects with the same color as the selected object ("blue" in our example), select a "blue" object then enter:

    *COL or *COL, and then select the object.

    In that case, when you press Enter after entering the shortcut, an acquisition agent opens: select the object then click Close to close the acquisition agent.

  3. To run a predefined query with arguments, use the following shortcuts:

    Shortcut Full Text Description
    *COL< xxx > Color= xxx ,all Searches for all elements with the xxx color everywhere, where xxx is the RGB code (for example, *COL'(0,0,255)' when searching for the "blue" color), or the color name (for example, *COLblue), or the color index (for example, *COL45).
    *SST< xxx > Set= xxx ,all Searches for all objects in the selection set xxx everywhere where xxx is the name of the set. For example, *SST'Set1' or SSTSet1.
    *LAY< n > Layer= n ,all Searches for all objects in the layer n everywhere, where n is the layer number, for example, *LAY2.
    *LNW< n > .Line & Weight= n ,all Searches for all lines drawn with the thickness index n, as displayed in the Weight list of the Search dialog box, everywhere. For example, *LNW3 to search for a 0.7000 mm line: .
    *LNT< n > .Line & Dashed= n ,all Searches for all lines drawn with the dashed index n, as displayed in the Dashed list of the Search dialog box, everywhere. For example, *LNT2 to search for a "Dotted" line: .
    *PTT< n > .Point & Symbol= n ,all Searches for all points drawn with the symbol n, as displayed in the Symbol list of the Search dialog box, everywhere. For example, *PTT8 to search for the eighth symbol in the list, from top to bottom: •.

    For example, to search for all lines of type "Dotted" everywhere, enter the appropriate shortcut after the prefix used to run favorite queries:

    Shortcut
    f:*LNT2
    f=*LNT2
    favorite:*LNT2
    favorite=*LNT2

    Tip: If you select f: as favorite: in the Default Prefix for Power Input list, you do not need to enter the prefix before the shortcut. You enter: *LNT2 to search for all lines of type "Dotted" everywhere.