You are here: Surpac Concepts > Macros > SCL > SCL Graphics Drawing > SclGraphicsSetLinePattern
GEOVIA Surpac

SclGraphicsSetLinePattern

Overview

Set the pattern with which individual line segments in a polyline are to be drawn.

Synopsis

SclGraphicsSetLinePattern $pattern

Description

Polylines consist of a number of discrete line segments. These may be drawn with a pattern consisting of a variety of dots and dashes. The pattern is defined using a symbolic representation of dots and dashes and in some cases names.

Arguments

  • pattern
  • Pass by value. Permitted values for pattern include:

    • "---" A solid line.
    • "- -" A simple dashed line.
    • "...." A dotted line.
    • "-.-." Dashes and dots alternating.
    • "-..-.." Dashes and double-dot alternating.
    • "-..." Dashes and triple-dot alternating.
    • "---- ----" Long dashes.
    • "center" Very-long-dash and short-dash alternating.
    • "phantom" Very-long-dash and double-short-dash alternating.

Returns

Nothing.

Examples

SclGraphicsOpen mynode
  SclGraphicsSetLinePattern "---"
  SclGraphicsSetLinePattern phantom
SclGraphicsClose