5.9.18.1.  Create Media Variables in PARTproject

The following explains how to create Media Variables in PARTproject. Alternatively they could also be created via PARTtemplateDesigner (see Chapter 10, PARTtemplateDesigner - Create datasheets ).

Create Media Variables in the dialog area Variables.

  1. Open working area

    Open PARTproject.

    Under Project selection, select the project for which you want to create Media Variables.

    Under Settings, select the tabbed page Media variable.

    Explanations on user interface

    In order to get a better overview you can filter the lines of the dialog area Variables. Above the table, Filter options are available:

    • Filter: Enter variable name with free text input (case sensitive)

    • Language (middle list field): Without entry (white field) all available languages are displayed, when selecting a specific language only corresponding lines. First select the option default and create the default language.

    • Type (right list field):

      • TEXT

      • HTMLTEXT

      • BMPFILE

      • TABLE

      • TEXTFILE

      • FILE

    • No inherited values: When activating, variables which do not have own values in relation to the selection under Project selection, meaning only inherited, are displayed grayed out.

  2. Select language (middle list field)

    At first create the default language, so select default.

  3. Create new Media Variable

    Click on the icon New key .

    -> The respective dialog is opened.

    • In the input field, enter the name of the Media Variable to be created and select HTMLTEXT.

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

      Variablename_HELP

      Example:

      For a variable BNEB, you want to create a HELP variable: Then the name has to be BNEB_HELP.

    • In the list field, select the option HTMLTEXT. With this option you can also embed pictures and perform basic formatting like bold, italic, etc.

    Confirm by clicking OK.

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

  4. Assign content

    • Select the new 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 on OK.

      -> The content is taken into the Media Variable.

  5. Optionally:

    If the content shall be used on PARTcommunity as additional tooltip information / Info Button (HELP-Information), please set 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: