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 following example explains how to create a value range with graphics [Value ranges with images]:[94]
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]
Storage location [Save location]: Select In In geometry and table.
Type identification [Identification type]: Geometric feature [Geometry attribute] here
Status: Select the option Value range variable with graphics.
Enter all parameters with the correct syntax under Formula [Equation].
Note For the value range variable with graphics [Value range variable with graphics] type, three comma-separated parameters are specified for each value.
0,'A','form_a_400px.png', 1,'B','form_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.
In the second step, you create a sketch in the Sketcher, for example, which is used to create a "cut".
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.
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.
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.
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 ).
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 ”.