Export - Automation

The Export method exports the document to a specified file. Returns a Boolean.

 

Syntax

object.Export( FileName, SelectionOnly, Options )

 

Parameter

Type

Description

FileName

String

required; file name including the extension

SelectionOnly

Boolean

optional; true to export only selected objects

Options

String

optional; default="", see remarks

 

Remarks

Include the file extension in the FileName to indicate the file type. See the following links for more details on Options.

Golden Software Blanking [.BLN] Export Options

Golden Software Boundary [.GSB] Export Options

Golden Software Interchange [.GSI] Export Options

Bitmap Export Options

Atlas Boundary [.BNA] Export Options

AutoCAD [.DXF] Export Options

Encapsulated PostScript [.EPS] Export Options

MapInfo Interchange Format [.MIF] Export Options

Portable Document File [.PDF] Export Options

ESRI Shapefile [.SHP] Export Options

 

Example

This example demonstrates how to export a map as a TIFF file using bitmap export options.

 

'Open a file so there is something to export

 Set Plot = mvApp.Documents.Open(mvApp.ApplicationFolder + " Samples\FlowMap.gsm")

 

'Export the map as a bitmap

  Plot.Export(FileName:=mvApp.ApplicationFolder + " Samples\export.tif", _

 Options:="Width=972, Height=422")

 

Used by: PlotDocument object