In Designer mode

 


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.

  1. In Designer, create a Catalog object named MaterialOptions.

    Let us specify that the new catalog is subordinate to the MaterialsAndServices catalog.
  2. On the Owners tab, add the MaterialsAndServices catalog to the list of owners.
  3. Create a Catalog object named AdditionalMaterialProperties.
  4. Create a Chart of characteristic types object named MaterialProperties.
  5. 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
    • Date
    • Boolean
    • CatalogRef.AdditionalMaterialProperties

    Fig. 15.5. Specifying a composite data type for the characteristic value type of a chart of characteristic types
  6. For the AdditionalMaterialProperties catalog, specify the MaterialProperties catalog as the owner (fig. 15.6).


    Fig. 15.6. Specifying catalog owner
  7. 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
  8. Create an InformationRegister object named MaterialPropertyValues.
  9. On the Data tab, create the register dimensions:
    • PropertySet. Master, type: CatalogRef.MaterialOptions
    • PropertyType. Type: ChartOfCharacteristicTypesRef.MaterialProperties
  10. 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.
  11. 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.
  12. 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

Comments
0
Add comment