AddWireframeLayer

AddWireframeLayer adds a new 3D wireframe to a MapFrame object. Returns a Wireframe object.

Syntax

object. AddWireframeLayer( Map, GridFileName )

Parameter

Type

Default

Description

Map

MapFrame

required; This specifies the MapFrame object to which the wireframe layer is added.

GridFileName

String

required; This provides the path and file name of the grid file.

Example 1

This example demonstrates how to add a wireframe map layer named Wireframe to the existing map coordinate system named MapFrame from the grid file named demogrid.grd.

'declare Wireframe object and add a wireframe layer to the map

Dim Wireframe As Object

Set Wireframe = Shapes.AddWireframeLayer(Map:=MapFrame, _

GridFileName:=SurferApp.Path+"\Samples\demogrid.grd")

Example 2

This script displays all the methods and properties in the Shapes collection.

Used by: Shapes collection

See Also

Wireframe Object