powered by CADENAS

Manual

Manual

6.8.6.3.  Type "Value range variable with graphics"

The figure shows a created Value range variable with graphics in the PARTdesigner

The figure shows a created Value range variable with graphics in the PARTdesigner

In the following with the help of a little example it is explained, how to create a Value ranges with images:[58]

  1. In the first step you create a value range variable in the Variable Manager. Here exemplarily FORM.

    Create a variable with the respective parameters.[59]

    • Name: Here in the example "FORM".

    • Mode: Select Dual mode.

      [Note] Note

      For value range variables, parameters have to be saved both in the 3db file and in the tab/tac file. That's why you have to select Dual mode.

    • DIN / ISO-ID: optionally

    • Unit: optionally

    • Data type:

      [Note] Note

      Note the correlation of the data types.

      When stating a number for the internal value under Equation, then, under Data type, you have to state a numerical type as well. When stating text for the internal value under Equation, then, under Data type, you have to state "Text" as well.

    • Identification type: Here Geometry attribute

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

    • Equation:

      Under Equation enter all parameters with correct syntax.

      [Note] Note

      For the type Value range variable with graphics each value consists of three comma separated parameters.

      Example:

      0,'A','form_a_100px.png', 1,'B','form_b_100px.png'

      1. Parameter

      Value

      2. Parameter

      Naming

      3. Parameter

      Path/Name of graphic

      1 B form_b_100px.png

      The respectively first value denotes the internally used value, the respectively second value the display value in the table, the respectively third value the name of the graphic.

      Depending on whether the internally used value is text or number, under Data type the correct selection has to be made. Text or Integer/Decimal number.

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

  2. In the second step, in the Sketcher, create a sketch, which will be used for a "Cut".

  3. In the third step the cutting sketch gets a respective Condition, which creates the cut depending on the value selection of the variable FORM.

    Only create, if Only create, if

    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_100px.png', 1,'B','form_b_100px.png'

  4. To display the column of the value range variable with naming in the PARTdesigner, go to the Test mode.

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

  5. Just as well you can test in the PARTdataManager. Table view and value selection is identical as in the PARTdesigner.

    In the column FORM, click on the value range icon and choose the desired form.

    FORM A

    FORM A

    FORM B

    FORM B

    Optionally there is the possibility to display graphics instead of text in the table column in PARTdataManager.

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

    Therefor, in PARTproject, under the tabbed page General, block Variables under Variables containing graphics, enter the variable name (here exemplarily FORM).

    PARTproject - Columns containing graphics

    PARTproject - Columns containing graphics



[58] The adequate example can be found in the "Training" catalog under \v11_news\value_ranges\value_ranges_with_graphic\value_ranges_with_graphic.prj.