Referencing User Features in Search Operations  

This task explains how to reference User Features like any other existing types and how to perform search operations on these types.
  • User Features can define new types of objects you created and can therefore be searched for like any other type.
  • If you want other users to use the type you created, you will have to provide them with the User Feature, the catalog in which it is stored (if stored in a catalog), and the CATGScript file.
Before performing this scenario, indicate the reference directory for types (Tools>Options>General>Parameters and Measure>Knowledge Environment tab).
  1. Open the Pktudfcreatedtype.CATPart document and access the Product Knowledge Template workbench (if needed). 

  2. Click the Create a UserFeature icon (). The UserFeature Definition dialog box is displayed. 
    Replace the default User Feature name with Pad3, then select the Assemble.2 object in the specification tree.

  3. Click the Parameters tab, select the 5th line in the list of available parameters, select the Published Name check box and enter the new name: Radius.

  4. Click the Type tab. In the Super type field, click Auto. MechanicalFeature is displayed in the Super type field.
    Note that the super type is automatically displayed by the application. The super type can be: MechanicalFeature or Skinfeature.

  5. In the Type 1 field, enter the name of the type that you want to assign to the User-Defined Feature (MyPadType in this scenario) and click Generate.  Click OK to close the User Feature dialog box. Your type is created.

  6. Select Insert>UserFeature>Save In Catalog... from the standard menu bar or click the Save object in a catalog icon (). The Catalog save dialog box is displayed.

  7. Select the Create a new catalog option and click the button on the right-hand side of the Catalog name field. The dialog box displayed allows you to specify a .catalog file where to store the created User Features. Enter a file name and click Save. Click OK in the Catalog save dialog box.

  8. Open the PktForInstantiation.CATPart document. The following image is displayed.

  9. In the standard toolbar, click the icon. The catalog browser is displayed.

  10. Click . In the dialog box displayed, select the catalog which contains the User Features you want to instantiate. Click Open to open the selected catalog. The dialog box which is displayed next depends on your last interaction on this catalog. Double-click the object displayed until you get Pad3 on screen:

  11. Double-click Pad3. The Insert Object dialog box is displayed.

For more information about the Insert Object dialog box, click here.  
  1. Instantiate Pad3 in the document.

    • Select Point.2 in the Insert Object dialog box, then select the Point.2 object in the document geometrical area or in the specification tree.
    • Select Point.3 in the Insert Object dialog box, then select the Point.3 object in the document geometrical area or in the specification tree.
    • Select Draft.1\PartBody in the Insert Object dialog box, then select the face highlighted on the figure below. Click OK and Close. Pad3 is instantiated. Click Close to exit the Catalog Browser.
  1. Select Edit>Search (CTRL+F). The Search window opens.

  2. Select the Advanced tab.

  3. Select Knowledgeware under Workbench. The type generated when creating the User Feature are located in the Knowledgeware package and is saved by default in the knowledgeTypesCustom directory.

  4. Select MyPadType (this is the type assigned to the User Feature) under Type.

  5. Select Radius under Attribute. The Attributes' criterium dialog box opens. Enter 20mm in the = field. Click OK.

    Note that MyPadType is now considered like any other type and can therefore be searched for.

  6. Click Search: the Pad3 instance (Pad3.1) is displayed in the Object found field and is highlighted both in the specification tree and in the geometrical area.

See the Quick Reference topic for a comprehensive list of the interactions that can be carried out on User Features.