With the help of graphics you can present a drawing of the configured item that reflects the choices made in the user dialog box. If the user makes the setup for drawings for a product model, the drawing will be shown on a separate tab in the user dialog box and will be available for printing from the configured line.

Graphics are set up in the form. This opens when you click > on the form.

When setting up graphics, the user can select which variables from the product model will be reflected in the drawing. Files that have drawings representing each combination of selected variable values must be created and saved in one folder. The path of this folder is specified in the form. When the user makes choices in the user dialog box, the drawing reflecting these choices is taken from the folder and shown on the tab. The graphic is updated every time that the user changes a value in the user dialog box. The correct drawing is selected from the specified folder by the file name that is generated by using the values of the variables reflected in the drawing.

File name generation is set up in the form. In the Format file namefield, the user should type as many '%n' signs as variables that have been selected in the field. Each variable number should be typed instead of the 'n' sign. During item configuration, the '%n' signs will be replaced with the value of the variable in n position in the variable list.

Note Note

When you create drawings representing all combinations of variables, name the created files to correspond with the file names that will be generated. You can shorten the names of some variable values. The number of characters representing each variable value is defined in the field.


If the file is not found or if the user does not make any choices in the user dialog box, the default graphic is shown. A file with a default drawing must be also created beforehand.

When the user accepts the configuration, a copy of the final drawing will be copied to document handling in Microsoft Dynamics AX and connected to the configured line. The type of file in which the final drawing is saved can be selected in the field in the form.

If several variable values can be used for one picture, you can use intervals to avoid creating a graphic for each value. You can set up the intervals for each variable in the form, which opens when you click Interval in the form.

Example

When configuring a table lamp, the user can select any shade diameter from 20 to 50 centimeters. When you set up graphics for this lamp, it is reasonable to create one file to be shown if the user selects the diameter from 20 to 35 and another one to be shown if it is from 35 to 50.

0 < x < 35 => 35

35 < x < 50 => 50

Therefore, if x is between 20 and 35, the value 35 will be used for graphics file name generation. This allows using number variables to reproduce the drawing instead of requiring an infinite number of drawings.