Import - Automation

 

The Import method imports a file into the document. Returns a Layer object.

 

Syntax

object.Import( FileName, Options, AppendImage )

 

Parameter

Type

Description

FileName

String

required; file name including the extension

Options

String

optional; default = "", see Boundary File Options

AppendImage

Boolean

optional; true to append the file to existing files

 

Example

This example imports a Golden Software Boundary [.GSB] file and sets the IDs.

 

Plot.Import(FileName:= mvApp.ApplicationFolder + "\Samples\co2010.gsb", _

Options:= "AreasToCurves=1, PrimaryIDField=2, SecondaryIDField=1", AppendImage:=True)

 

Used by: PlotDocument object