Atoll Scripting Tutorial Documentation
Atoll Scripting Tutorial Documentation
API_AST_E0
Table of Contents
1
Introduction ............................................................................................................................................ 4
3
3.1
3.2
Forsk 2010
Introduction
This document describes the functions and properties used in the Atoll Scripting Tutorial. Atoll Scripting
Tutorial is developed by Forsk using the standard Atoll API interfaces to demonstrate some of the
operations that could be done with it. This tutorial has been tested with Atoll version 2.8.3 (build 3451).
To use the scripts, just double-click on the file(s) with vbs extension. Then dont hesitate to open these files with
Notepad to see how the things work.
3.1
Used Functions
The objAtoll used in the script corresponds to the Application object used in the SDK
Developer Reference Guide. It is the Atoll application as a whole. Among many others, the
following functions have been used:
LogMessage displays a message in the Atoll event viewer window with aside a specific
icon type. It takes two parameters in the following order: message and iconType.
Message is a string
)
)
timeToSleep is an integer
Set defines a value for a property. It takes two parameters in the following order:
propertyName, propertyValue.
Forsk 2010
propertyName is a string
The objAtoll.Documents used in the script corresponds to the Documents object used in
the SDK Developer Reference Guide. It is a collection of all the documents available in
Atoll. Among many others, the following functions have been used:
Open opens and existing atl file, as read only or not, by using its full path (i.e.
absolute path). It takes two parameters in the following order: filePath and
asReadOnly.
filePath is a string
Add
creates
an
atl
file,
by
using
a
It takes one parameter: technologyTemplateName.
technology
template.
LTE
UMTS HSPA
TD-SCDMA
WiMAX 802.16e
WiMAX 802.16d
connectionToDatabase is a string
databaseSchema is a string
The objDocument used in the script corresponds to the Document object used in the SDK
Developer Reference Guide. It is a document in Atoll. Among many others, the following functions
have been used:
Save saves a document into an atl file full path (i.e. absolute path). It takes one parameter:
filePath
filePath is a string
Archive saves to documents modifications into the database the document is connected to. It
Refresh updates the active document with modifications coming from the database the
document is connected to. It takes one parameter: refreshMethod.
Forsk 2010
1 for updating the document while keeping all the documents modifications not yet
saved into the database
SetConfig loads a configuration file (cfg or geo) into the document. It takes one parameter:
filePath.
ExportConfig saves some documents properties into a configuration file. It takes one
parameter: filePath.
filePath is a string
GEO
ZONES
STUDIES
RunEx starts the calculations and can make Atoll wait for them to be finished. It takes two
parameters in the following order: recalculatePathloss and atollShouldWait.
True for recalculating all the path loss matrices before starting the calculations
False for recalculating only invalidated path loss matrices before starting the
calculations
document.
objDocument.GetRecords used in the script corresponds to the TabularData object used in the
SDK Developer Reference Guide. It is the object that gives access to all the data that could
be represented as a table in a document. Among many others, the following functions have
been used:
Find searches a value within a particular column. It takes four parameters in the following
startingRow is an integer indicating the row number from which the search will
start from
columnIdentifier is a string indicating the name of the column within which the
search is performed. It could also be an integer, indicating the columns position
inside the Tabulardata. It is important to keep in mind that the columns position
starts at zero.
searchCriteria is an integer indicating the search operator that can take one of the
six values:
Forsk 2010
AddNew creates a new empty row inside the Tabulardata and put it into the edition mode. It
Edit puts a row into the edition mode. It takes one parameter: rowNumber.
rowNumber is an integer
GetValue retrieves the value depending on a row and a column. It takes two parameters in the
rowNumber is an integer
columnNumber is a string indicating the name of the column within which the
search is performed. It could also be an integer, indicating the columns position
inside the Tabulardata. It is important to keep in mind that the columns position
starts at zero.
SetValue sets a value of a column for a row being in the edition mode. It takes two parameters
columnNumber is a string indicating the name of the column within which the
search is performed. It could also be an integer, indicating the columns position
inside the Tabulardata. It is important to keep in mind that the columns position
starts at zero.
Update stops the edition mode after updating the modification made into the Tabulardata. It
objDocument.GetRootFolder used in the script corresponds to the ChildFolder object used in the
SDK Developer Reference Guide. It is the object that gives access the folders inside the
explorer window of a document. It takes one parameter: whichTab. whichTab can take
one of the three values: 0 for the Data tab, 1 for the Geo tab and 2 for the Module Tab. Among
many others, the following functions have been used:
AddChild adds a new item inside a folder. It takes two parameters in the following order:
3.2
position is an integer that indicates the position of item as it can be seen in Atoll.
Used Properties
visible indicates whether Atoll should be visible. It is a boolean that can take one of the
two values:
Forsk 2010
True
name indicates the name of the document without the extension file. It is a string.
fullName indicates the full path name (i.e. the absolute path) of the document with the
extension file. It is a string.
The following properties were used for the ChildFolder object and more particularly on the
predictions folder:
name indicates the name of the prediction as it seen in the explorer window. It is a string.
visible indicates whether the prediction should be visible. It is a boolean that can take one
of the two values:
Forsk 2010
False
True
False
selected indicates whether the prediction should be selected in the explorer window. It is a
boolean that can take one of the two values:
True
False
addtolegend indicates whether the predictions legend should be included in the legend
window. It is a boolean that can take one of the two values:
True
False
Atoll Scripting
Tutorial:
Used Functions
and Properties
October 10
Head Office
7, rue des Briquetiers
31700 Blagnac - France
Tel: +33 562 747 210
Fax: +33 562 747 211
US Office
200 South Wacker Drive - Suite
3100
Chicago, IL 60606 - USA
Tel: +1 312 674 4846
Fax: +1 312 674 4847
China Office
Suite 302, 3/F, West Tower,
Jiadu Commercial Building,
No. 66 Jianzhong Road,
Tianhe Hi-Tech Industrial Zone,
Guangzhou, 510665, P. R. of China
Tel: +86 20 8553 8938
Fax: +86 20 8553 8285