Using Resource Management along with Knowledge Modeling Language

You can create a Resource Table when working with a KML library in a Know-how Apps component. You can then add References to this Resource Table and assign a Logical Name to them. The Resources declared in the Resource Table are then available according to their types:

  • The templates are available in EKL functions such as InstantiateTemplate or ManageInstance
  • The Concepts can be re-used in the KML Operation.

This task shows you how to:


Before you begin: You must have created an engineering template.

Use a Resource Table

You can add resources to resource table. A resource table is contextual to a part or an application.

Note: A resource table can also be used to reference Product resources or engineering templates. You can use EKL functions such as ManageInstance and InstantiateTemplate on these resources. To find out more, see Generative Functions.

  1. Click Create Resource Table to create a resource table.
    The Resource table tab opens.
  2. To add new items to the table, click Add a new resource item .
    A row is added to the table.
  3. Add your template as a resource:
    1. To name your new resource, double-click the Logical Name field (The name attributed is MyTemplate in our example).
    2. Double-click the Resource Type field to select a resource type.
      Note: KML Concept and KML Template are both available.
    3. Select the resource itself by double-clicking the Resource field. A dialog box opens allowing to select your resource via a search engine.
    4. To find your resource, type the name or the * wildcard in the Search field and click Search.
      The Select a resource in component xxx dialog box appears.
    5. Select the resource and click OK.
    The resource is now stored in the resource table. If you want to use this resource in a Rule, you can enter: InstantiateTemplate(“MyTemplate”, MyDestinationProduct). The MyTemplate string is the Application Resource Management (ARM) path of the resource.

Note: Some EKL functions do not work properly with resource tables paths, they require a PLM Reference object. For example the New function can be used to instantiate a VPM Reference which must be accessed in the database. To this purpose, use the PLMQuery type.

Use Data Setup

You can add resources to a Data Setup table. In this case, your table is associated with a project.

  1. Create a Product Reference.
  2. From the Compass, click Social and Collaborative Apps , and select Data Setup.
  3. In the Resource Tables tab, right-click Knowledge Resources and select Create a new Resource Table.
    The PLM Resource Set dialog box appears.
  4. Click OK.
    The tab related to the Resource set you selected opens.
  5. To add new items to the table, click Add a new resource item .
    A row is added to the table.
  6. Add your PLM Template to the Resource Table.
    1. To name your new resource, double-click the Logical Name field (The name attributed is Engine in our example) and type the name.
    2. Double-click the Resource Type field to select a resource type.
      Note: KML Concept and KML Template are both available.
    3. Select the resource itself by double-clicking the Resource field. A dialog box opens allowing to select your resource via a search engine.
    4. To find your resource, enter its name or key in the * wild-card the Search field and click Search.
      The Select a resource in component xxx tab appears.
    5. Select the resource and click OK.
  7. Associate the Knowledge Resources resource set with your current Project. For more information about Data set-up, see the Data Setup User's Guide.

The resource is now stored in the resource table. If you want to use this resource in a rule, you can enter: engInst = carRef->ManageInstance("KnowledgeResources|Engine", "","InstanceName")

Note: "KnowledgeResources|Engine" is the Data set-up path of the Engine Product Reference.