7.8.13.3. Type "Value range variable with graphics "

If graphics are also to be displayed for a value range variable, select the type Value range variable with graphics.

The illustration shows a created value range variable with graphics [Value range variable with graphics] in the PARTdesigner

The illustration shows a created value range variable with graphics [Value range variable with graphics] in the PARTdesigner

The following example explains how to create a value range with graphics [Value ranges with images]:[94]

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

    Create the variable with the corresponding parameters.[95]

    • 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. Therefore, the option In geometry and table must be selected.

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

    • Unit: optional

    • Data type:

      [Note]Note

      Make sure that the data types match.

      If you specify a number under Formula [Equation] for the internal value, you must also specify a number type under Data type [Data type]. If you enter text under Formula [Equation] for the internal value, you must select the type "Text" under Data type [Data type].

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

    • Status: Select the option Value range variable with graphics.

    • Formula [Equation]:

      Enter all parameters with the correct syntax under Formula [Equation].

      [Note]Note

      For the value range variable with graphics [Value range variable with graphics] type, three comma-separated parameters are specified for each value.

      Example:

      0,'A','form_a_400px.png', 1,'B','form_b_400px.png'

      1. Parameters

      Value

      2. Parameters

      Naming

      3. Parameters

      Path/name of the graphic including file extension

      1Bform_b_400px .png

      The first value is the value used internally, the second value is the value displayed in the table and the third value is the name of the graphic. Do not forget to include the file extension.

      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].

      The used graphics have to be made available in png format, quadratic, with the max. size of 400 x 400 px in the project directory.

  2. In the second step, you create a sketch in the Sketcher, for example, 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 generate if applies [Only create, if] Only generate if applies

    Only generate if applies [Only create, if]

    [Note]Note

    Make sure to use the same variable type as in the equation.

    1 is stated as numerical variable (without quotation marks), as in the equation the internal value has been stated as numerical variable as well.

    0,'A','form_a_400px.png', 1,'B','form_b_400px.png'

  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

    You have the option of displaying graphics instead of the text in the PARTdataManager in the table column.

    The prerequisite for this is that the relevant variable name is entered in PARTproject on the General tab page, in the Variables block under Variables with graphics [Variables containing graphics], the relevant variable name must be entered (here in the example FORM ).

    PARTproject - Columns with graphics [Columns containing graphics]

    PARTproject - Columns with graphics [Columns containing graphics]

    Result

    With pressed Ctrl key and mouse wheel you can zoom graphics.




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

[95] Basic information on the procedure can be found at Section 7.8.10, “ Variable manager - The individual parameters ”.