Customizing the Tree Grid View Definition

Use the following procedure to create a custom Tree Grid View Definition for use with the Dynamic and Streaming Viewers:

  1. Create a new Tree Grid View Definition. It is necessary to create a new Tree Grid View Definition rather than copy the default Tree Grid View when a separate Query definition is being used.
  2. Assign a Name and Description. They help identify the purpose of the Tree Grid View for future reference.
  3. Choose a Query Definition based on the Base Query (see Section Base Query Definition). Query Definitions must have the CAD ItemType as the context ItemType.
Note
Once a Query Definition is selected and the Tree Grid View Definition saved, the selection of the Query Definition cannot be changed.

After saving the Tree Grid View Definition Item, the Editor View becomes available

  1. Assign values for Max Visible Children On Expand and Max Grow Levels. Refer to section Default Tree Grid View Definition for a description of these values and their effect on the Dynamic and Streaming Viewers.
  2. Assign the Query Definition Mappings. Refer to the Tree Grid View Administrator’s Guide for a description of how to assign mappings to Query Items. Note that the name of the Tree Grid View Definition appears in the View Selection context menu.
  3. Assign a Linked Toolbar/Context Menu. This is required for all Tree Grid Views associated with Dynamic View Definitions, created in the following step. If a Tree Grid View does not contain a Linked Toolbar/Context Menu, the user will receive an error. The default Linked Toolbar/Context Menu, View3D_CAD Presentation Configuration, should be reused to maintain access to default Toolbar buttons and Tree Grid View Context Menu, described in section Context Menu Functions.

Create a Dynamic View Definition. The Dynamic View Definitions should be assigned to the specific viewer (Dynamic or Streaming Viewer)

  1. Click on New Dynamic View Definition.

  1. Enter the Name or the Dynamic View Definition Item which is used in the context menu for the Dynamic Viewer /Streaming as shown below.
  2. Select the Tree Grid View Definition.
  3. Select the viewer (Dynamic or Streaming) in View With field.
  4. Assign a Data Processor method. “dpn_GraphAPIQueryProcessorMethod” is available by default to process CAD.

The Dynamic Definition for Dynamic Viewer appears as follows:

The Dynamic View Definition for Streaming Viewer appears as follows:

Note
The CAD Query Item must be mapped for the Tree Grid View to function properly in the Dynamic Viewer and Streaming Viewer.

Once set, the Tree Grid View Definition can be removed by removing the corresponding Dynamic View Definition Item.