AddContourMapXYZC

AddContourMapXYZC adds a new contour map from a slice of a 3D grid. Returns a MapFrame object.

Syntax

object.AddContourMapXYZC( 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 contour's surface

Example 1

This example demonstrates how to create a map coordinate system named MapFrame followed by its corresponding contour map named ContourLayer from the 3D grid file named GoldConcentrationXYZC.vtk.

'declare MapFrame object and create a new contour map

Dim MapFrame As Object

Set MapFrame = Shapes.AddContourMapXYZC_

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

 

'declare ContourLayer object and set the reference to the contour layer

Dim ContourLayer As Object

Set ContourLayer = MapFrame.Overlays(1)

Example 2

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

Used by: Shapes collection

See Also

ContourLayer Object

Contour Map Properties