AddContourLayerXYZC
AddContourLayerXYZC adds a new contour layer to a MapFrame object from a slice of a 3D grid. Returns a ContourLayer object.
Syntax
object. AddContourLayerXYZC( Map, GridXYZCFileName,SliceZValue )
Parameter |
Type |
Description |
Map |
required; This specifies the MapFrame object to which the contour 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 contour's surface |
Example 1
This example demonstrates how to create a map coordinate systemnamed MapFrame followed by its corresponding color relief map named ColorReliefLayer from the 3D grid file named GoldConcentrationXYZC.vtk. It then creates a contour map layer in the MapFrame object with AddCountourLayerXYZC and names the layer ContourLayer.
'declare MapFrame object and create a color relief map
Dim MapFrame As Object
Set MapFrame = Shapes.AddColorReliefMapXYZC(GridXYZCFileName:=SurferApp.Path+"\Samples\GoldConcentrationXYZC.vtk", SliceZValue:=65)
'declare ColorReliefLayer object and set the reference to the color relief layer
Dim ColorReliefLayer As Object
Set ColorReliefLayer = MapFrame.Overlays(1)
'declare ContourLayer object and add the contour layer to the map
Dim ContourLayer As Object
Set ContourLayer = Shapes.AddContourLayerXYZC(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