Variable Graphic Legend Showing All Material and Sampler Graphics Used in a Project



  
 Applies To 
  
 Product(s):gINT Professional, gINT Professional Plus
 Version(s):N/A
 Environment: N/A
 Area: Report-Graphic Text Doc
 Subarea: 
 Original Author:Kathleen Holcomb, Bentley Technical Support Group
  

 

 

 

 

 

 

 

 

A variable legend entity creates a legend displaying the material, sampler, well or other symbols in use in a single log, all boreholes on a fence report, or throughout a project (displayed in a graphic text doc). This is a useful visual aid on a report. The legend is called variable because the set of symbol boxes that appears will vary from log to log or fence to fence, depending on which symbols are in use.

To show the symbols in use in a project we will create two Graphic Text Doc reports, one in landscape and one in portrait orientation.  Each will include two legends, one for material and one for sampler graphics. Then we will demonstrate how to specify the order of symbols. 

Note: This exercise requires the use of training.GPJ project and training.GLB library available from: download.aspx.  Instructions for unzipping and setting up these files is on: using gint downloaded examples.aspx.

Variable Graphic Legend Showing All Material and Sampler Graphics Used in a Project 

  1. Go to File->Change Library.  Select training.glb and click Open.

  2. In REPORT DESIGN, select the Graphic Text Docs tab.

  3. Click the New   icon or select File->New. The ‘New...’ dialog box appears.

  4. In the General tab, click Reset, then enter the following:

    FieldValueComments
    NameSIMPLE LEGENDName that appears in the report object selector
    DescriptionLegend of material and sampler graphics used
    Left Margin0.6
    Bottom Margin0.425
    Page SizeLetter
    OrientationPortrait
    Templatedata entry.gdt
    Key SetProjectSpecifies the level at which data is consolidated
  5. Click OK. The empty report is created.

  6. We will use the TITLE PORTRAIT block from the Drawing Library to create borderlines and header text. Select Blocks->Insert Block. In the BLOCK PROPERTIES dialog box, click Reset then enter the following:

    FieldValueComments
    Block SourceDwglib!title portraitClick the Browse icon, select a Type of ‘DWGLIB’ and a Block of ‘TITLE PORTRAIT’.
    Design Mode ColorVery Light RedColor in REPORT DESIGN for the block insert and contents.
    X-2X coordinate of alignment point for block insert. No effect on output.
    Y8.5See X.
  7. Click OK.

  8. The report needs a title. Select Draw->Text->Text or click the Text  icon, click Reset, then enter the following:

    FieldValueComments
    Text ExpressionPROJECT SYMBOL LEGEND
    Height0.14

    Character size of description text.

    Horizontal AlignmentRight
    Vertical AlignmentTop
    X7.5
    Y10.1
  9. Click OK.

  10. We need a centered title above the first legend, which is for Material graphics. Select Draw->Text->Text or click the Text   icon, click Reset, then enter the following:

    FieldValue
    Text ExpressionMaterial Graphics
    Height0.14
    Horizontal AlignmentCenter
    Vertical AlignmentTop
    X3.8
    Y8.85
  11. Click OK.

  12. Next we create a variable legend for material graphics. Select Graphic Text->Variable Legend, click Reset, then enter the following:

    FieldValueComments
    Field with Data<<LITHOLOGY.Graphic>>Source field for symbols. Use the Data Tool.
    Symbol TypeMaterial GraphicsType of symbol to display.
    Number of Rows4Four rows of symbols.
    Row Spacing0.6Row height. Needs to exceed rectangle height by some small distance for spacing.
    Number of Columns6Six columns of symbols.
    Column Spacing1.25Width of each column.
    Fill OrderBy RowSymbols populate the legend from left to right.
    Rectangle Height0.4Symbol rectangle height.
    Rectangle Width0.4Symbol rectangle width.
    Gap Between Descriptions and Rectangles0.04
    Text Height0.08
    X0.06
    Y8.6
  13. Go to the Symbol Descriptions tab and specify the following:

    FieldValueComments
    Name and/or DescriptionName: DescriptionSpecifies whether the Name (symbol code), Description or both appear, and if both, in what format. We’re printing the code first, then a colon, then the description.
  14. Click OK.

  15. To add a centered title above the sampler graphics legend, select Draw->Text->Text or click the Text   icon, click Reset, then enter the following:

    FieldValue
    Text ExpressionSampler Graphics
    Height0.14
    Horizontal AlignmentCenter
    Vertical AlignmentTop
    X3.8
    Y6.0
  16. Click OK.

  17. To create a variable legend for sampler graphics, select Graphic Text->Variable Legend, click Reset, then enter the following in the Main tab:

    FieldValue
    Field with Data<<SAMPLE.Graphic>>
    Symbol TypeSampler Graphics
    Number of Rows2
    Row Spacing0.6
    Number of Columns6
    Column Spacing1.25
    Fill OrderBy Row
    Rectangle Height0.4
    Rectangle Width0.4
    Gap Between Descriptions and Rectangles0.04
    Text Height0.08
    X0.06
    Y5.75
  18. Go to the Symbol Descriptions tab and specify the following:

    FieldValue
    Name and/or DescriptionName: Description
  19. Click OK.

  20. Go to OUTPUT->Graphic Text Docs and preview the result.

  21. Close the preview.

Portrait Orientation

A useful variant is the vertical project symbol report. To create this, do the following:

  1. Go to REPORT DESIGN->Graphic Text Docs.

  2. Select File->Copy Page. Name the copy ‘SIMPLE VERTICAL LEGEND’.

  3. Double-click the ‘Material Graphics’ text entity, change the following values, then click OK:

    FieldValue
    Horizontal AlignmentLeft
    X0.06
  4. Double-click the ‘Sampler Graphics’ text entity, change the following values, then click OK:

    FieldValue
    Horizontal AlignmentLeft
    X3.8
    Y8.85

  5. Double-click the material graphics variable legend entity, change the following values, then click OK:

    FieldValue
    Number of Rows14
    Number of Columns2
    Column Spacing1.5
    Fill OrderBy Column
    X3.8
    Y8.6

  6. Go to Output->Graphic Text Docs and preview the report.

  7. Close the preview.

Symbol Legend Positions

The Variable Legend entity in logs, fences, and graphic text documents, by default, prints the symbols in the order that they were encountered in the output. You can override this default behavior for sampler, material, well and/or general symbols using the Symbol Legend Positions feature in SYMBOL DESIGN, which enables you to assign rankings to symbols for display in legends.

For example, you might want to order material symbols to show gravel symbols first, followed by sand, silt, clay, rock, and all others. To do this you would assign an integer to all gravels you use, a higher integer for all sands, and so on. You can skip values. It is only the relative values that are important, that is, 5 will sort before 8 and it doesn't matter that there are no 6 or 7 values. Also, you can have multiple symbols with the same legend position values, and symbols with unspecified values are placed at the end of the list.

We’ll assign the following values to material symbols used in our project:

CodeDescriptionLegend Position
CLUSCS Low Plasticity Clay4
CLSUSCS Low Plasticity Sandy Clay4
GW-GCUSCS Well-graded Gravel with Clay1
MLUSCS Silt3
SANDSTONESandstone5
SCUSCS Claey Sand2
SILTSTONESiltstone5
SMUSCS Silty Sand2
SPUSCS Poorly-graded Sand2

To demonstrate the feature, do the following:

  1. Go to SYMBOL DESIGN and select the Material tab.

  2. Select File->Symbol Legend Positions. The Symbol Legend Positions dialog box appears.

  3. Enter the legend position values in the corresponding rows from the list above, then click OK.

  4. Go to OUTPUT->Graphic Text Docs. Preview the output. The material symbols are now in gravel-sand-silt-clay-rock-other order.

  5. Close the preview.

See Also

Variable Graphic Log Report Legend: 12406.variable graphic log report legend.aspx

Variable Graphic Legend Showing All Material Graphics Used on a Fence: 

12407.variable graphic legend showing all material graphics used on a fence.aspx