About Working with TerraBuilder API

The TerraBuilder Application Programming Interface (API) provides automated processing and access to most TerraBuilder operations, using a JavaScript script file (.js) that is run by TerraBuilder:

§  Build and update projects

§  Automatically start pyramid and MPT creation

§  Publish MPT projects to SGS

§  Publish DirectConnect projects to SGS

TerraBuilder API Objects

TerraBuilder API includes nine objects, all of which can be accessed through JavaScript.

The main objects are:

§  TerraBuilder70 – This object is the main entry point to most TerraBuilder “service” functions. Through this object, you can manage the TerraBuilder application (e.g. open and close projects, and connect to SkylineGlobe Server).

§  TBProject70 This is the main object for managing the project including methods for saving projects, creating an MPT, and publishing an MPT and DirectConnect to SkylineGlobe Server. TBProject70 also provides access to the Layers, Polygons, and Settings objects for editing layers and polygons and setting basic project settings.

The API’s other objects are:

§  Geometry (TBGeometry70)

§  Layer (TBLayer70)

§  Layers (TBLayers70)

§  Polygon (TBPolygon70)

§  Polygons (TBPolygons70)

§  Settings (TBSettings70)

§  SGServer (TBSGServer70)