AddVectorLayerXYZC

AddVectorLayerXYZC adds a new vector map layer to a MapFrame object from a slice of a 3D grid. Returns a VectorLayer Object.

Syntax

object. AddVectorLayerXYZC( Map, GridXYZCFileName, SliceZValue )

Parameter

Type

Description

Map

MapFrame

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

GridXYZCFileName

String

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

SliceZValue

Double

required; The Z-value of the XYZC slice to use as the layer's surface

Example 1

This example demonstrates how to create a contour map and coordinate system named MapFrame followed by its corresponding contour map layer named ContourLayer from the 3D grid file named GoldConcentrationXYZC.vtk. It then creates a vector map layer within the MapFrame with AddVectorLayerXYZC and names the layer VectorLayer.

'declares MapFrame object and creates a new contour map

Dim MapFrame As Object

Set MapFrame = Shapes.AddContourMapXYZC(GridXYZCFileName:=SurferApp.Path+"\Samples\GoldConcentrationXYZC.vtk", SliceZValue:=65)

 

'declares ContourLayer object and sets the reference to the contour layer

Dim ContourLayer As Object

Set ContourLayer = MapFrame.Overlays(1)

 

'declares VectorLayer object and adds a 1-grid vector layer to the map

Dim VectorLayer As Object

Set Vector Layer = Shapes.AddVectorLayerXYZC(Map:=MapFrame, _

GridXYZCFileName:=SurferApp.Path+"\Samples\GoldConcentrationXYZC.vtk", SliceZValue:=65)

Example 2

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

Used by: Shapes collection

See Also

VectorLayer Object

1-Grid Vector Map