AddVectorMapXYZC

AddVectorMapXYZC adds a new vector map from a slice of a 3D grid. Returns a MapFrame object.

Syntax

object.AddVectorMapXYZC( GridXYZCFileName, SliceZValue )

Parameter

Type

Description

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 map coordinate system named MapFrame followed by its corresponding vector map named VectorLayer from the 3D grid file named GoldConcentrationXYZC.vtk.

'declares MapFrame object and creates a new 1-grid vector map

Dim MapFrame As Object

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

 

'declares VectorLayer object and sets the reference to the 1-grid vector layer

Dim VectorLayer As Object

Set VectorLayer = MapFrame.Overlays(1)

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