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

SclGraphicsSetVisibility

Overview

Alter the visibility settings to display or hide selected geometry in the graphics database.

Synopsis

SclGraphicsSetVisibility $visibilitySpecification

Arguments

  • visibilitySpecification
  • The visibility specification takes the form of name1=on|off, name2=on|off, .... The name part of the specification is the name of a geometry type to which the visibility setting is to be applied. The visibility of each item of geometry may be turned on or off. SclGraphicsSetVisibility may be called multiple times on a graphics node. The visibility settings are accumulated and are used to determine what geometry is drawn during the update cycle.

    Alternatively all visibility settings may be concatenated into a single string and applied at one time. If the same geometry type is repeated when setting the visibility then the last setting is the one that wins.

    Permitted values for the name parameter include:

    • markers - Alter the visibility for markers.
    • lines - Alter the visibility for polylines.
    • text - Alter the visibility for text.
    • faces - Alter the visibility for faces.
    • edges - Alter the visibility for edges.

Returns

Nothing.

Examples

SclGraphicsOpen mynode
  SclGraphicsSetVisibility "lines=on,markers=off"
SclGraphicsClose