The Morphing Template

This topic is a simple example showing the power of the Knowledgeware. In the scenario described below, you create geometry driven by a parameter. Depending on the parameter selected, the inscriptions displayed on the surface will be different: V4 or V5
 
This model is made up of the following items:
1 The parameters that drive the geometry:
  • WhichLetter, which enables you to choose the version number that will display: V4 or V5.
  • Width, which enables you to choose the size of the version number.
2 The geometric inputs node that gather:
  • The Reference point
  • The plane used to build the sketch
  • The surface (Fill.1)
3 The content: The conditional curve is generated by the rule. The geometry can morph by modifying the WhichLetter geometry.

 

 

  1. Open the PktMorphingUDF.CATPart file.

  2. From the Start>Knowledgeware menu, access the Product Knowledge Template workbench.

  3. Click the Create a UserFeature icon () to select the items that will make up the User Feature. The User Feature Definition window is displayed.

  4. In the Definition tab, select:

    • The formulas in the specification tree.
    • The WhichLetter and the Width parameter
    • The WhichLetterRule rule
    • The Geometrical Set.2
  5. In the Parameters tab, publish the following parameters. Click OK when done to close the User Feature Definition window.

    • WhichLetter
    • Width
  6. Save your file and close it.

  7. Open the PktDestinationPart.CATPart file. It contains a surface, different points, as well as a plane, that will be the inputs of the instantiated User Feature.

  8. Click the Instantiate from Document icon (), select the file that you have saved in the File Selection window, and click Open. The Insert Object dialog box is displayed. Make the appropriate selection.

    • Select Plane.1 in the geometry.
    • Select Point.3 as a reference point.
    • Select Extrude.1.
    • Click OK when done. The User Feature is instantiated.

  9. Expand the UserFeature1.1 node.

    • Double-click the WhichLetter parameter. In the Edit Parameter dialog box, change the parameter value to V5 and click OK. V5 now is displayed on the surface.

    • Double-click the Width parameter. In the Edit Parameter dialog box, change the parameter value to 40mm and click OK. The size is modified accordingly.