5.9.17.1.  Create Media Variables in PARTproject

The following explains how to create media variables in PARTproject . Alternatively, these can also be created via PARTtemplateDesigner (see Chapter 10, PARTtemplateDesigner - Create data sheets ).

You create media variables in the Variables dialog area.

  1. Open work surface

    Open PARTproject.

    Under Project selection, select the project for which you want to create media variables.

    Under Settings, select the Media Variable [Media variable] tab page.

    Explanations of the user interface

    For a better overview, you can filter the rows in the Variables dialog area. Filter options are available above the table:

    • Filter: Input of variable names with free text input (sensitive to upper and lower case)

    • Language (middle list field): If no entry is made (white field), all existing languages are displayed; if a language is selected, only the corresponding lines are displayed. By default, select the default option first and create the default language first.

    • Type (right-hand list field):

      • TEXT

      • HTMLTEXT

      • BMPFILE

      • TABLE

      • TEXTFILE

      • FILE

    • No inherited values: When activated, variables that do not have their own values in relation to the selection under Project selection, but only inherited values, are displayed grayed out.

  2. Select language (middle list field)

    First create the default language by selecting default.

  3. Create new media variable

    Click on the New key icon.

    -> The respective dialog is opened.

    • Enter the name of the media variable to be created in the input field and select HTMLTEXT.

      If you create variables for additional tooltip information in PARTcommunity (see Fig. „Tooltip with additional information on PARTcommunity:“), please use the following scheme:

      Variablenname_HELP

      Example:

      You want to create a HELP variable for a BNEB variable: The name must then be BNEB_HELP.

    • Select the HTMLTEXT option in the list box. With this option, you can also include images and perform basic HTML formatting such as bold, italics, etc.

    Confirm with OK.

    -> The new Media Variable (key / new line) is displayed.

  4. Add content

    • Select the newly created line and click on the Edit button.

      -> The respective dialog is opened.

    • Enter desired content.

      HTML example:

      <html><head><meta name="qrichtext" content="1" /><style type="text/css">
      p, li { white-space: pre-wrap; }
      </style></head>
      <div>
      <p><strong>Bandnennbreite:</strong></p>
      <p>Die Bandnennbreite eines F&ouml;rderbandes ist die Breite des Rahmens ohne 
       Ber&uuml;cksichtigung weiterer &uuml;berstehenden Anbauteile.</p>
      <p><strong>Bandnutzbreite:</strong></p>
      <p>Die Bandnutzbreite eines F&ouml;rderbandes bezieht sich auf die innere Breite der 
       Seitenf&uuml;hrungen.</p>
      <p><strong>Hinweis:</strong></p>
      <p>Bei F&ouml;rderb&auml;ndern ohne Seitenf&uuml;hrungen und keinem nach oben 
       &uuml;berstehenden Antrieb ergibt sich eine unabh&auml;ngige Nutzbreite von der 
       Bandnennbreite.</p>
      <p><img src="bandbreiten.png" alt="" width="100%" height="auto" /></p>
      </div>
      </html>

      [Note]Note

      Use browser compliant HTML.

      If possible, do not use CSS and Style information for elements.

      You may insert pictures. These have to be stored in the same directory as the respective project file. Relative paths are not supported.

      For width and hight declaration use "width" and "height" tags. Pictures larger than 450px should have height=auto and width=100% (see above example).

    • Finally, click OK.

      -> The content is taken into the Media Variable.

  5. Optional:

    If the content on PARTcommunity is to be used as additional tooltip information / info button (HELP information), please make the following entry in the project file:

    INFO(BNEL)=BNEL_HELP INFO(BNEB)=BNEB_HELP etc

    Through this, the icon calling the tooltip information is created.

Example for additional tooltip information on PARTcommunity:

Tooltip with additional information on PARTcommunity:

Tooltip with additional information on PARTcommunity: