7.8.13.2.  Type "Value range variable with naming"

If you do not want to display the original values directly for a value range variable, but instead text such as "on" / "off" or "form A" / "form B", then select the value range variable with name [Value range variable with naming] type.

The procedure is described below using a small example:[92]

A section rotation is to be provided with a condition and then the display of the feature is to be controlled via a value range variable.

  1. The first step is to create a value range variable in the variable manager [Variable Manager].

    Create the variable with the corresponding parameters.[93]

    • Name: Here in the example "FORM".

    • Storage location [Save location]: Select In In geometry and table.

      [Note]Note

      For value range variables, parameters must be saved both in the 3db file and in the tab/tac file. Dual mode must therefore be selected.

    • DIN-ID [DIN / ISO-ID]: optional

    • Unit: optional

    • Data type: In [Integer] this example, an integer [Integer] is selected.

      [Note]Note

      Please note the conformity of data types.

      If you enter 0, 'A', 1 , ' B ' in the formula, you must select "Integer [Integer] " under Data type [Data type]. If you enter e.g. 'S', 'Hexagon', 'Z', 'Cylinder', then you must select "Text [Text] " under Data type [Data type].

    • Type identification [Identification type]: Geometric feature [Geometry attribute] here

    • Status: Select the option Value range variable with name [Value range variable with naming].

    • Formula [Equation]:

      • The value range variable with naming [Value range variable with naming] type works with value pairs:

        The first value is the value used internally, the second value is the value displayed in the table.

        Depending on whether the value used internally is text or a number, the correct selection must be made under Data type. Text or integer/decimal [Decimal number] number [Integer].

      • Set the value pair to the first position that you want to use as the start value (default value) when opening the table.

      Examples:

      • Expression

        Explanation

        Example 1:

        0,'A',1,'B'

        0 is assigned to A, 1 is assigned to B . As the internal values are numbers, the data type number [Number] (integer [Integer] / decimal number [Decimal number] ) must be set for this variable.

      • Expression

        Explanation

        Example 2:

        'H','Hexagon','C','Cylinder','B','Bolt'

        KO is assigned without a dome, K is assigned a cone dome, L is assigned a lens dome . Because the internal values are text [Text], the text [Text] data type must be set for this variable. Text values are always specified between two quotation marks ( 'Text [Text] ').

  2. In the second step, you create a sketch in the Sketcher, which is used to create a "cut".

  3. In the third step, you link the cut sketch with a corresponding condition [Condition], which creates or omits the cut depending on the value selection of the FORM variable.

    Only create, if Only create, if

    Only create, if

  4. Test the functionality directly in the PARTdesigner in the Table docking window. (Using the button button to show and hide value range columns)

    Click in the value range field and select the desired value.

  5. You can test just as well in the PARTdataManager test. The table view and value selection is identical to the PARTdesigner.

    In the FORM column, click on the value range symbol column and select the desired shape.

    FORM "A"

    FORM "A"

    FORM "B"

    FORM "B"




[92] You can find the appropriate example in the training catalog in the directory \v11_news\value_ranges\value_ranges_with_naming\value_ranges_with_naming.prj.