Maptitude GISDK Help

SetLineStyle()

Summary

Sets the line style used to draw line features.

 

Syntax

SetLineStyle(string lyr_set_name, linestyle line_style)

 

Argument Contents
lyr_set_name Name of the layer or selection set
line_style The line style used to draw line features

 

Notes

Example

solid = LineStyle({{{1, -1, 0}}}),

dashed = LineStyle({{{1, -1, 0, 1, 2}}}),

SetLineStyle("Highways|", solid)

SetLineStyle("Highways|Construction", dashed)

 

Error Codes

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

 

See Also

Function Summary
LineStyle() Creates a new line style
GetLineStyle() Gets the style used to draw line features
SetLineColor() Sets the color used to draw line features
SetLineWidth() Sets the line width used to draw line features

 

 

©2025 Caliper Corporation www.caliper.com