Application Object

Manages documents and application-wide properties.

 

Properties

 

Document ActiveDocument

Returns active document. Read only.

 

Window ActiveWindow

Returns active window. Read only.

 

Application Application

Returns itself. Read only.

 

String Caption

Sets or returns caption string. Read/write.

 

CoordinateSystemSet CoordinateSystemSet

Returns available coordinate systems. Read only.

 

DatumSet DatumSet

Returns available datums. Read only.

 

CoordinateSystem DefaultCoordinateSystem

Returns default coordinate system for projected components. Read only.

 

CoordinateSystem DefaultCoordinateSystemLatLon

Returns default coordinate system for latitude/longitude components. Read only.

 

Datum DefaultDatum

Returns default datum. Read only.

 

Ellipsoid DefaultEllipsoid

Returns default ellipsoid. Read only.

 

String DefaultFilePath

Sets or returns default folder for mapfiles. Read/write.

 

Unit DefaultUnit

Returns default unit for projected components. Read only.

 

Unit DefaultUnitLatLon

Returns default unit for latitude/longitude components. Read only.

 

DocumentSet DocumentSet

Returns set of open documents. Read only.

 

EllipsoidSet EllipsoidSet

Returns available ellipsoids. Read only.

 

String FullName

Returns fully qualified path to application executable. Read only.

 

Number Height

Sets or returns height of the main window in pixels. Read/write.

 

History History

Returns history object. Read only.

 

Boolean Interactive

Returns True if application is operating in interactive mode. Read only.

 

Number Left

Sets or returns left coordinate of the main window in pixels. Read/write.

 

String Name

Returns name of the application. Read only.

 

Any Parent

Returns itself. Read only.

 

String Path

Returns path to application executable. Read only.

 

RecentDataSourceSet RecentDataSourceSet

Returns a set of recently used data sources. Read only.

 

String StatusText

Sets or returns the contents of the status bar. Read/write.

 

String SerialNumberHash

Returns a hashed value for the serial number, for example, "BVh%...". Read only.

 

String SerialNumberHashHex

Returns a hashed value for the serial number in hexadecimal notation, for example, "121F...". Read only.

 

Number Top

Sets or returns top coordinate of the main window in pixels. Read/write.

 

UnitSet UnitSet

Returns available units. Read only.

 

UserInterface UserInterface

Returns a user interface object that allows invoking commands and controlling elements of the user interface such as dialogs and controls. Read only.

 

Version Version

Returns version information. Read only.

 

Boolean Visible

Sets or returns visibility state of the main window (only works for scripts launched from the Manifold GUI). Read/write. 

 

Number Width

Sets or returns width of the main window in pixels. Read/write.

 

WindowSet WindowSet

Returns set of opened windows. Read only.

 

Methods

 

Help()

Invokes help system.

 

String BytesToString(Object bytes)

Converts an array of bytes into a string, automatically recognizing text encoding.

 

String InputBox(String prompt, String caption, String initialValue)

Displays the input box with specified prompt and caption and waits for user input. Initial value is optional.

 

MessageBoxResult MessageBox(String message, String caption)

Displays message box with specified text and optional caption.

 

MessageBoxResult MessageBoxEx(String message, String caption, MessageBoxType type)

Displays message box with specified text, caption, icons and buttons. Returns the identifier of the pressed button.

 

BranchSet NewBranchSet()

Creates new branch set.

 

Color NewColor(String name, Number red, Number green, Number blue, Number alpha)

Creates new color with given name and RGBA components. All parameters are optional.

 

ColumnLookupSet NewColumnLookupSet()

Creates new column lookup set.

 

ColumnSet NewColumnSet()

Creates new set of columns.

 

ControlPoint NewControlPoint(String name, Number x, Number y)

Creates new control point with given name and location.

 

ConverterProperty NewConverterProperty(String name, String value)

Creates new converter property for given name and value.

 

CoordinateConverter NewCoordinateConverter()

Creates new coordinate converter.

 

CoordinateSystem NewCoordinateSystem(String preset)

Creates new coordinate system using name of coordinate system preset.

 

CoordinateSystem NewCoordinateSystemFrom(String xml)

Creates new coordinate system from given XML string.

 

CoordinateSystem NewCoordinateSystemFromBinary(Object binary)

Creates new coordinate system from binary data.

 

CoordinateSystem NewCoordinateSystemFromEpsg(String epsg)

Creates new coordinate system from given EPSG code.

 

CoordinateSystem NewCoordinateSystemFromFile(String path)

Creates new coordinate system from given XML file.

 

CoordinateSystem NewCoordinateSystemFromFileAUX(String path)

Creates new coordinate system from given ERDAS AUX file.

 

CoordinateSystem NewCoordinateSystemFromTextGSR(String text, Number width, Number height)

Creates new coordinate system from given GSR string. The last two parameters are the width and height of an image or surface which has the coordinate system, and are optional.

 

CoordinateSystem NewCoordinateSystemFromTextPRJ(String text)

Creates new coordinate system from given PRJ string.

 

CoordinateSystem NewCoordinateSystemFromTextWKT(String text)

Creates new coordinate system from given WKT string (same as PRJ string).

 

DataSourceColumnSet NewDataSourceColumnSet()

Creates new column set for specifying export or import columns.

 

Datum NewDatum(String name)

Creates new datum using datum name.

 

Document NewDocument(String name, Boolean readOnly)

Creates new document or opens document from given file.

 

Ellipsoid NewEllipsoid(String name)

Creates new ellipsoid using ellipsoid name.

 

Export NewExport(String name)

Creates new exporter using exporter name.

 

Geocoder NewGeocoder()

Creates new geocoder object.

 

Geom NewGeom(GeomType type)

Creates new geometric entity of given type.

 

Geom NewGeom(GeomType type, BranchSet branchSet)

Creates new geometric entity of given type and branches.

 

Geom NewGeom(GeomType type, Branch branch)

Creates new geometric entity of given type and single branch.

 

Geom NewGeom(GeomType type, PointSet pointSet)

Creates new geometric entity of given type and single branch.

 

Geom NewGeomFromBinary(Object binary)

Creates new geometric entity from binary data in Geometry format.

 

Geom NewGeomFromBinarySDE(Object binary, Number shiftX, Number shiftY, Number scale)

Creates new geometric entity from binary data in Geometry (SDE) format. Shift and scale parameters specify conversion factors from integer coordinates and are optional. If omitted, shiftX is set to 0, shiftY is set to 0, and scale is set to 1.

 

Geom NewGeomFromBinarySHP(Object binary)

Creates new geometric entity from binary data in Geometry (SHP) format.

 

Geom NewGeomFromBinaryWKB(Object binary)

Creates new geometric entity from binary data in Geometry (WKB) format.

 

Geom NewGeomFromTextWKT(String text)

Creates new geometric entity from textual data in OGC WKT format.

 

Import NewImport(String name)

Creates new importer using importer name.

 

Point NewPoint(Number x, Number y)

Creates new point with given coordinates. Both parameters are optional.

 

Point NewPointFromUSNG(String usng)

Creates a new point from USNG coordinate string.

 

PointSet NewPointSet()

Creates new set of points.

 

Progress NewProgress()

Creates new progress indicator.

 

Rect NewRect(Number minX, Number minY, Number maxX, Number maxY)

Creates new rectangle object with specified coordinates. All parameters are optional.

 

Topology NewTopology()

Creates new topology object.

 

Unit NewUnit(String name)

Creates new unit using unit name.

 

View NewView(String name, Number scale, Number x, Number y)

Creates new view with given name, scale and location.

 

Quit()

Quits application; prompts to save changes.

 

Repeat()

Repeats last undone action.

 

Undo()

Undoes last action.

 

Obtained From

 

No need to create (accessed through global Application object).

 

See Also

 

Scripting Reference