Designing a Table Using the Generate Components Behavior    

In the scenario detailed below, the expert designs a table using the Generate Component behavior. The scenario is divided into the following steps:
Remember to save your .CATfct file in the directory corresponding to the CATGraphicPath environment variable. To perform this scenario, you will need the following files:

Create Technological Types and Their Sub-components

  1. From the Start>Knowledgeware menu, access the Business Process Knowledge Template workbench.

  2. Create the Table technological type.

    • Click the Create Technological Type icon () to create the technological type. The Create technological type dialog box is displayed. Enter Table and click OK.
    • Click the Create Technological Type icon () to create the technological type. The Create technological type dialog box is displayed. Enter Leg and click OK.
    • Click the Table technological object and click the Add Components icon
      () to create the component. The Component Creation dialog box is displayed.

    • Enter the name of the component: Legs_list.

    • Enter the Component Type: Leg.

    • Enter the number of components: 4.

    • Click OK to validate.

    At this stage of the scenario, your feature dictionary is similar to the graphic opposite.

Add the "Creating the slab" Sequence to the Table Technological Type

  1. Click the Table technological object and click the Sequential Combination behavior () to create a combination of behaviors. 

At this stage of the scenario, your feature dictionary is similar to the graphic opposite.

 

  1. Double-click the SequentialCombination in the Behaviors View and Table in the Behaviors tab to access the sequential combination.

  2. Double-click the SequentialCombination node that is displayed in the Behaviors tab. (Expand the Table node if need be.)

  3. Enter the name of the combination, Creating the slab in this scenario, in the Name field of the opening dialog box and click OK to validate.

  4. Click the Creating the slab combination in the Behaviors tree and click the Load Behavior icon ().

  5. Click the Creating the slab combination in the Behaviors tree and click the Bind Object Behavior icon ().

  6. Double-click the BindObject behavior. The Bind Object window is displayed. Enter ../../.. in the Relative Name field. Click OK to validate.

  7. Click the Creating the slab combination and click the Insert Components Behavior icon (). An InsertComponents behavior is displayed in the Behaviors tab.

    • In the Definition scrolling list, select Existing Component.
    • Click the Existing component field, expand the LoadDocument variables node and select the output Document. =LoadDocument\Document is displayed in the Existing component field.
    • Click the Father product field, expand the BindObject variables node and select the output link. =BindObject\Link is displayed in the Father product field.
    • Click OK to validate.

Add the "Creating the legs" Sequence to the Table Technological Type

  1. Click the Table type and click the Sequential Combination behavior () to create a combination of behaviors. 

  1. Double-click the SequentialCombination node that is displayed in the Behaviors tab. (Expand the Table node if need be.)

  2. Enter the name of the combination, Creating the legs in this scenario, in the Name field of the opening dialog box and click OK to validate.

  3. Click the Creating the legs combination in the Behaviors tree and click the Filter Catalog Behavior icon ().

  4. Double-click the FilterCatalog node. The Filter Catalog editor is displayed.

    • Click the ... button and select the BktLegsCatalog.catalog in the File Selection dialog box and click Open when done.
    • Click OK to validate.
  5. Click the Creating the legs combination and click the Generate Components Behavior icon ().

  6. Double-click the Generate Components behavior. The GenerateComponents dialog box is displayed.

    • In the Name field, enter Generate legs.
    • Click the Component list name, expand the Table variables node and select the Legs_list attribute: The other fields are automatically filled.
    • Click OK to validate.
  7. Click the Generate legs combination and click the Bind Object Behavior icon ().

  8. Double-click the BindObject behavior. The Bind Object window is displayed. Enter ../../.. in the Relative Name field. Click OK to validate.

  9. Click the Generate legs combination and click the Instantiate Template behavior icon (). InstantiateTemplate is displayed in the Behaviors tab.

  10. Double-click the InstantiateTemplate node. The InstantiateTemplate editor is displayed.

    • Click the Template feature field, expand the FilterCatalog node and click the output feature. FilterCatalog\Feature is displayed in the Template feature field.
    • Click the Destination field, expand the BindObject node and click the output link. BindObject\Link is displayed in the Destination field.
    • Click OK to validate.
  11. Click the Generate legs combination and click the Add item behavior icon ().

  12. Double-click the AddToList behavior. The AddToList dialog box is displayed.

    • Click the List field, expand the Generate legs combination variables node and click the List. =Generate legs\List is displayed in the List field.
    • Click the Object field, expand the InstantiateTemplate node, and select the UserFeature output. =InstantiateTemplate\UserFeature is displayed in the Object field.
    • Link the index and the iteration feature of the Generate component behavior.
    • Click OK to validate.

 

At this stage of the scenario, the Behaviors tab is similar to the graphic opposite.

The definition of the behaviors is now over.  Save your file and generate your workbench. (Click here to display the generated .CATfct file).

Generate the Workbench

  1. Click the Applicative Workbench Generation icon () to generate a user workbench. Enter the name of the workbench, Designing a Table in this example, as well as the workbench type, Product in this scenario.

Test the Workbench

  1. From the Tools>Options>Knowledgeware>Business Knowledge Template menu, select All Users from the Access Rights scrolling list and click OK to work in a User environment.

  2. Click the root of the specification tree, then the icon, then the root of the specification tree, and click the Table icon to type the product.

  3. Right-click Table (Product1) and select Table(Product1) object>Creating the slab. The File selection window is displayed. Select the BktSlab.CATPart file. The following image is displayed.

  4. Right-click Table (Product1) and select Table(Product1) object>Creating the legs. The Catalog Browser is displayed. Double-Click ComponentFamily.2, and Document Template.1. The Insert Object dialog box is displayed.

  5. In the geometry, click one point and click OK. The first leg is instantiated.

  6. Repeat the same operation with the  other legs. The instantiation window i.e. the Insert object dialog box is displayed 4 times, enabling you to instantiate the 4 legs.

  7. Click Close. The 4 legs are instantiated as defined when creating the Table type.

Note that:
  • The document templates are instantiated and that the parts are typed according to the type defined in the .CATfct file.
  • If you edit the component list located below the table product, 4 instances are present.
For more information about: