SetLineWidth()

Summary

Sets the line width used to draw line features.

Syntax

SetLineWidth(string lyr_set_name, real line_width)

Argument Contents
lyr_set_name Name of the layer or selection set
line_width The line width in points

Notes

  • A line width of zero indicates the narrowest possible line (hairline).

  • You should set a line width of at least 0.25 if you plan to print the map.

  • When used on a selection set, a null value for line_width indicates that lines of selected features are drawn with the default line width for the layer.

  • If lyr_set_name is null, SetLineWidth() operates on the current layer.

Example

SetLineWidth("Highways|", 0.25)
SetLineWidth("Highways|Interstate", 2.5)

Error Codes

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

See Also

Function Summary
GetLineWidth() Gets the width used to draw line features
SetLineColor() Sets the color used to draw line features
SetLineStyle() Sets the line style used to draw line features