Wireframe Object

The Wireframe object contains the properties of a wireframe map created in Surfer with the Shapes method AddWireframe.

Derived from: Shape object(All methods and properties of Shape apply to this object.)

The following table provides the properties of the WireFrame object:

Property

Description

BaseElevation

Returns/sets the base elevation.

BaseLine

Returns the line format object for the base. It is a read-only property.

Border

Returns/sets the surface plot border style.

ColorScale

Returns the color scale object if enabled. It is a read-only property.

Grid

Returns the grid object used to create the plot. It is a read-only property.

GridXYZC

Returns the 3D grid being used for slices. It is a read-only propoerty.

GridFile

Returns/sets the name of the grid file used to create the plot.

GridXYZCFile

Returns/sets the name of the 3D grid files used to create the map.

LineDirection

Returns/sets the directions to plot lines (a combination of the srfWireDir values).

Opacity

Returns/sets the opacity.

RemoveHiddenLines

Returns/sets the remove hidden lines state.

ShowBase

Returns/sets the show base state.

ShowColorScale

Returns/sets the show color scale state.

ShowLower

Returns/sets the show lower state.

ShowUpper

Returns/sets the show upper state.

ShowVerticalLines

Returns/sets the show vertical base lines state.

SliceZValue

Returns/sets the Z-value of the XYZC slice being used as the contour surface

xLine

Returns the line format object for lines of constant X. It is a read-only property.

yLine

Returns the line format object for lines of constant Y. It is a read-only property.

ZLevels

Returns the levels object for lines of constant Z. It is a read-only property.

zLine

Returns the line format object for lines of constant Z. It is a read-only property.

ZoneDirection

Returns/sets the line directions to apply color zones to (a combination of the srfWireDir values).

ZoneLevels

Returns the levels object for color zones. It is a read-only property.

Example

The following script demonstrates how the Wireframe object is used in reference to the MapFrame object.

Sub Main

 

'Declares SurferApp as an object

Dim SurferApp As Object

 

'Creates an instance of the Surfer Application object and assigns it

'to the variable named "SurferApp"

Set SurferApp = CreateObject("Surfer.Application")

 

'Makes Surfer visible

SurferApp.Visible = True

 

'Declares Plot as an object

Dim Plot As Object

 

'Creates a plot document in Surfer and assigns it to the variable

'named "Plot"

Set Plot = SurferApp.Documents.Add(srfDocPlot)

 

'Declares Shapes as an Object

Dim Shapes As Object

 

'Assigns the Shapes collection to the variable named "Shapes"

Set Shapes = Plot.Shapes

 

'Declares MapFrame as an object

Dim MapFrame As Object

 

'Creates a wireframe and assigns the map coordinate system to the

'variable named "MapFrame"

Set MapFrame = Shapes.AddWireframe(GridFileName:=SurferApp.Path+"\Samples\demogrid.grd")

 

'Declares Wireframe as an object

Dim Wireframe As Object

 

'Assigns the wireframe properties to the variable named

'"Wireframe"

Set Wireframe = MapFrame.Overlays(1)

 

End Sub