Using the Resource Viewer

You can display any resource available in a resource table of the current know-how apps component and managed within the component (or within one of its prerequisites components) using the resource viewer widget.

See Also
Creating a Knowledgeware Dialog Box
  1. From the Compass, click 3D Modeling Apps , and select Know-how Apps User Experience.
    The Know-how Apps Component dialog box opens. Click OK.
  2. Switch to the Design layout tab to create a dialog box containing an area and two radio buttons.
  3. Add a Resource Viewer called ViewerARM1.
  4. From the Compass, click 3D Modeling Apps , and select Know-how Apps Components to create a resource table containing the resources you want to be displayed.

    In our example, the resources used are called res1 and res2.

  5. Back in the Know-how Apps User Experience app, create an action that sets the resource you want to show. To do so:
    1. Switch to the Events tab.
    2. Double-click the line below RadioButton1.
      The DialogBox1 Action definition for Modified event appears.
    3. Select On Modified in the Knowledge action scrolling list and click OK.
      The Action editor appears.
    4. Enter the following script and click OK when done.if (Frame1\RadioButton1\Checked == true) Frame1\ViewerARM1\VisualizationRoots ->Append("res1") else Frame1\ViewerARM1\VisualizationRoots ->Append ("res2")
  6. Expose the app.
  7. Integrate the dialog box into an action bar. To do so:
    1. Click the app in the tree.
    2. Click Create Section in Action Bar .
      The Create Section in Action Bar dialog box appears
    3. Enter its title and click OK.
    4. Click Create Custom Command .
      The Edit starter definition dialog box appears.
    5. Select DialogBox1 in the Definition identifier scrolling list. Click OK.
    6. Save your work.
  8. Click 3D Modeling Apps and select Your_Application to start the app.
    The 3D Part/Product DS tab opens. Click OK.
  9. Click the command and check the viewer contents. The viewer display changes depending on the radio button you click.