- From the Compass, click 3D Modeling
Apps
, and select Know-how Apps User Experience.
The Know-how Apps Component dialog box opens. Click OK. -
Switch to the Design layout tab to create a dialog box containing an area and two radio buttons.
- Add a Resource Viewer called ViewerARM1.
- 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. -
Back in the Know-how Apps User Experience app, create an action that sets the resource you want to show. To do so:
- Switch to the Events tab.
- Double-click the line below RadioButton1.
The DialogBox1 Action definition for Modified event appears. - Select On Modified in the Knowledge action scrolling list and click OK.
The Action editor appears. - 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")
-
Expose the app.
- Integrate the dialog box into an action bar. To do so:
- Click the app in the tree.
- Click Create Section in Action Bar
.The Create Section in Action Bar dialog box appears - Enter its title and click OK.
- Click Create Custom Command
.The Edit starter definition dialog box appears. - Select DialogBox1 in the Definition identifier scrolling list. Click OK.
- Save your work.
- Click 3D Modeling
Apps
and select Your_Application to start the app.
The 3D Part/Product DS tab opens. Click OK. - Click the command and check the viewer contents. The viewer display changes depending on the radio button you click.
|