Data Model: Model Tables

You can use model driven attributes to provide a consistent and smart way of data acquisition. Using model tables, you constrain attributes based on other attributes. These attributes are called model driven.

Example: To use a model table for diameter and material

  1. In the model table, specify valid combinations of diameters and material, such as Iron - 50; Iron - 100, Concrete - 400, Concrete - 300.
  2. Assign the model table to the main feature class, such as Pipe.
  3. In AutoCAD Map 3D toolset, in the main feature class form, use the Model Selector control to enter the attribute values, or to open the Model table.

The following instructions show the concept of model tables. For example, in Gas, you use the Pipe Model table, to acquire Pipe attributes.

To use a model table for data acquisition

  1. In AutoCAD Map 3D toolset, switch to the Maintenance workspace and open an enterprise industry model project with access to the Gas demo data set.
  2. In the industry model explorer, expand the topic Pipe. Right-click Pipe, and click Show Form.
  3. In the Pipe form, select a Pipe.
  4. Besides Model, click to show the Pipe Model form.

    The Pipe Model form consists of two sections: At the top is the filter section for the model attributes. Use the horizontal scroll bar in the middle of the form to view all attributes. The lower section displays the models (model table records) that match the current feature. For example, if not all model related attributes of the main feature are filled, several models would be applicable.

  5. Use the filter area to search for any other models.
  6. In the data grid, select a model, and click Apply.
  7. The main feature class changes into Edit mode. Check the values, and click Update to insert the attribute values as specified in the selected model.
  8. In the main feature class, click again. The model table filter is set to the model you just applied. That means that the main feature attributes match the model attributes. To apply another model, use the filter area.
  9. Close the Pipe Model form.

Alternatively, you select a model from the model list. In the Pipe form, on the General tab, select a model from the list. The list displays the Model Name (MODEL_NAME). If no model name is assigned, the list shows an empty entry. If the model table does not contain the attribute MODEL_NAME, the value of the VALUE attribute is shown. If no attribute VALUE is available, the list shows the FID.

To assign a model table to an existing feature class

  1. Start the data model administrator.
  2. Select the main feature class.
  3. Right-click, and select Edit Feature Class.
  4. In the Edit Feature Class dialog box, click the General tab.
  5. Under Model Feature Class, select the attribute feature class you want to assign to the feature class.
  6. Click OK.

You can use any attribute feature class as model table. If the model feature class contains attributes that are not in the main feature class, you can optionally add these attributes.

In the parent feature class form, the model table can be accessed using the Model Selector. Use the Form Designer to add the Model Selector control.

To add the Model Selector.

  1. Start the Form Designer.
  2. Select the parent feature class.
  3. Click Designer.
  4. See Form Designer Reference.

Updating Model Tables

Older versions of the enterprise industry model used model tables named <name>_MODEL. When you open an industry model that has the old model table structure, the system updates existing model tables, so they support the new concept of model driven attributes.

The data structure update performs the following steps.

Note: The model feature class is still being used, according to the new concept. However the model attributes are now stored in the main feature class, and you use the model table to support data acquisition.