GetLineWidth()

Summary

Gets the width used to draw line features.

Syntax

width = GetLineWidth(string lyr_set_name)

Argument Contents
lyr_set_name The name of the layer or selection set

Returns

A real number indicating the line width in points.

Notes

  • GetLineWidth() returns null if called on a selection set that does not have a defined line width.

  • GetLineWidth() returns zero to indicate the narrowest possible width (hairline).

Examples

wid = GetLineWidth("Highways|")
sel_wid = GetLineWidth("Highways|Selection")

Error Codes

Error Type Meaning
NotFound The layer or selection set does not exist

See Also

Function Summary
SetLineWidth() Sets the line width used to draw line features
GetLineColor() Gets the color used to draw line features
GetLineStyle() Gets the style used to draw line features