As we mentioned above, you need to create some new configuration objects:
- MaterialOptions catalog for describing material options
- AdditionalMaterialProperties catalog for describing custom characteristic value types
- MaterialProperties chart of characteristic types for creating characteristic types
- MaterialPropertyValues information register for storing values of characteristic types for various materials options
Let us begin.
- In Designer, create a Catalog object named MaterialOptions.
Let us specify that the new catalog is subordinate to the MaterialsAndServices catalog.
- On the Owners tab, add the MaterialsAndServices catalog to the list of owners.
- Create a Catalog object named AdditionalMaterialProperties.
- Create a Chart of characteristic types object named MaterialProperties.
- In the Characteristic value type field, click the Select button and define the composite data type as follows (fig. 15.5):
- Number, length: 15, precision: 3
- String, length: 25
Fig. 15.5. Specifying a composite data type for the characteristic value type of a chart of characteristic types
- For the AdditionalMaterialProperties catalog, specify the MaterialProperties catalog as the owner (fig. 15.6).
Fig. 15.6. Specifying catalog owner
- Specify that the additional characteristic values for the chart of characteristic types are stored in the AdditionalMaterialProperties catalog (fig. 15.7).
Fig. 15.7. Chart of characteristic types editor window
- Create an InformationRegister object named MaterialPropertyValues.
- On the Data tab, create the register dimensions:
- PropertySet. Master, type: CatalogRef.MaterialOptions
- PropertyType. Type: ChartOfCharacteristicTypesRef.MaterialProperties
- Create a register resource (fig. 15.8):
- Value. Type: Characteristic.MaterialProperties.
Fig. 15.8. Information register editor
Note that you can define a value type for a register resource as Characteristic.<name>. It is the composite data type that is defined in the value type for the corresponding chart of characteristic types. In other words, a register resource can have a value of any type among those defined in the value type of the chart of characteristic types.
- In the Link by type property of this resource, select the PropertyType register dimension.
A link by type ensures that the value types that can be entered in this field match the characteristic type selected in the PropertyType field.
- For the Choice parameters links property, click the Select button and move the PropertyType register dimension from the list of available attributes to the list of parameters.
Specifying a value for the Choice parameters links property ensures that when values stored in the Additional material properties catalog are being selected, only values related to the selected characteristic are suggested instead of all the values in the catalog (fig. 15.9).
Fig. 15.9. Information register resource properties