HyperWorks Desktop

*DefaultPostFLDZoneLegendFile()

Sets the default legend for the contour plot.

*DefaultPostFLDZoneLegendFile()

Sets the default legend for the contour plot.

Previous topic Next topic No expanding text in this topic  

*DefaultPostFLDZoneLegendFile()

Sets the default legend for the contour plot.

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Syntax

*DefaultPostFLDZoneLegendFile(FileName)

Argument

Name

Description

 

source_name

The full path to the file which contains zone color/label definitions.

Example

*DefaultPostFLDZoneLegendFile(“c:/tmp/fldzone.tcl”)

Application

HyperView.

Context

BeginGraphicDefaults()

Comments

A *DefaultPostFLDZoneLegendFile() command may be placed inside a *BeginGraphicDefaults() block to set a custom FLD zone legend’s color band and labels. You can do an FLD zone plot, and in the FLD panel you can edit the legend and from that dialog the custom legend settings can be saved to a file.

Example custom legend setting file which was saved from the FLD panel:

proc ::post::LoadFLDZoneSettings {fld_handle legend_handle } {

 $fld_handle SetCategoryColor 5 "255 0 0"

 $fld_handle SetCategoryLabel 5 "Failure edited again"

 $fld_handle SetCategoryColor 4 "204 204 204"

 $fld_handle SetCategoryLabel 4 "Marginal edited"

 $fld_handle SetCategoryColor 3 "0 255 0"

 $fld_handle SetCategoryLabel 3 "Safe"

 $fld_handle SetCategoryColor 2 "0 0 255"

 $fld_handle SetCategoryLabel 2 "Compression"

 $fld_handle SetCategoryColor 1 "129 5 65"

 $fld_handle SetCategoryLabel 1 "Loose Metal edited"

 $fld_handle SetCategoryColor 0 "255 0 255"

 $fld_handle SetCategoryLabel 0 "High Wrinkle Tendency"

}

See also

 

*DefaultPostContourLegendFile()

List of Preference Statements