SetLegendSymbology

 

Purpose: Set the symbology for the legend .

 

Argument  

Type

Required

Purpose

1

Integer

Yes

Index of legend entry to be set (1-30)

2

Integer

Yes

Symbol 1 index from the toolbox. (0-64) See symbol numbering.  Use 0 if this symbol will not be reset.

3

Integer

Yes

Connector index from the toolbox. (0-32) See connector numbering. Use 0 if this connector will not be reset.

4

Integer

Yes

Symbol 2 index from the toolbox.  (0-64)  See symbol numbering. Use 0 if this symbol will not be reset.

 

             

 

Example: Clear the legend entries (if any) and set up a new legend with 3 entries

 
.SetLegendHeight(1)

.SetFontStyle (22, 2, 12,rgb(0,0,255)) 'blue, italic and bold, 12 point font
.setlegendproperty("clearlegend", 0)
.setlegendproperty("entriesperrow", 3)
.SetLegendSymbology(1, 1, 1, 1) ' summary
.SetLegendText(1, "Summary", "")
.SetLegendText(2, "Planned", "")
.SetLegendText(3, "Critical", "")
.SetLegendSymbology(2, 3, 2, 3) 'planned
.SetLegendSymbology(3, 5, 3, 5) 'critical

 

The legend is stored with the template. The easiest way to set up a legend is using the GUI and then using a template with a program that manipulates the schedule.

 

Related Topics

  1. GetLegendProperty
  2. SetLegendHeight
  3. SetLegendProperty
  4. SetLegendText

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

To effectively program with this interface, it's important to learn all about Milestones Professional.  Learn about Milestones.

Milestones Professional 2025 Automation Methods and Properties.  © Copyright 2000-2025, KIDASA Software, Inc. All rights reserved.