AddWireframe

AddWireframe adds a new 3D wireframe. Returns a MapFrame object.

Syntax

object.AddWireframe( GridFileName )

Parameter

Type

Default

Description

GridFileName

String

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

Example 1

This example demonstrates how to create a map coordinate system named MapFrame followed by its corresponding 3D wireframe named 3D Wireframe from the grid file named demogrid.grd.

'declare MapFrame object and create a 3D wireframe map

Dim MapFrame As Object

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

 

'declare Wireframe object and set the reference to the 3D wireframe

Dim Wireframe As Object

Set Wireframe = MapFrame.Overlays(1)

Example 2

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

Used by: Shapes collection

See Also

Wireframe Object