PlotDocument Object

A PlotDocument object corresponds to a [.GSM] file. PlotDocument objects are created by the Documents.Add or Documents.Open methods of the Application object.

 

The PlotDocument provides access to all the drawing and map objects. Use methods and properties in the PlotDocument object to create maps, query maps, change map properties such as the projection, import and export files, print, and change the defaults such as line properties and units.

 

Derived from: Document object (All methods and properties of Document apply to this object.)

 

Properties

ActiveLayer

ActiveShapes

AreaUnits

CoordDisplayUnits

DefaultFill

DefaultFont

DefaultLine

DefaultNumericFormat

DefaultSymbol

DistanceUnits

Layers

PageSetup

PageUnits

ShowLayerManager

ShowObjectCoordManager

ShowObjectDataManager

ShowObjectPropertyManager

 

Methods

AddToAddressAbbreviationList

AutoRearrangeText

Calibrate

ConvertCoordUnits

ConvertProjection

CopyAllLayers

CopyDocProjection

CreateBackdrop

CreateBarMap

CreateBarMap2

CreateBaseMap

CreateCartogramMap

CreateDensityMap

CreateFlowMap

CreateGradientMap

CreateGraticule

CreateHatchMap

CreateLineGraphMap

CreateMapCollar

CreateMultiGraphMap

CreatePieMap

CreatePieMap2

CreatePinMap

CreatePostMap

CreatePostMap2

CreatePrismMap

CreateProjectionObject

CreateStreetMap

CreateStreetMap2

CreateSymbolMap

CreateTerritoryMap

CreateTerritoryMap2

CreateTextLookupTable

DeleteFromAddressAbbreviationList

DispersePoints

Export

GeocodeAddress

Import

MapReport

PasteDocument

PrintOut

ProjectDataFile

Query

QueryMapData

QueryWithinRange

SetMapLimits

SetObjectDataManagerType

SetScale

SetScale2

TabulatedDistance

TabulatedDistance2

 

Example

The following script demonstrates how the PlotDocument object is used.

 

Sub Main

'Declares mvApp as an object

 Dim mvApp As Object

 

'Creates an instance of the MapViewer Application

'object and assigns it to the variable named "mvApp"

 Set mvApp = CreateObject("MapViewer.Application")

 

'Makes MapViewer visible

 mvApp.Visible = True

 

'Declares Plot as an object

 Dim Plot As Object

 

'Creates a PlotDocument object in MapViewer

'and assigns it to the variable named "Plot"

 Set Plot = mvApp.Documents.Add(mvDocPlot)

End Sub