PreviousNext
Help > Programming PhotoModeler - Scripting/DDE Interface > Commands > NewProject
NewProject

Description:

Create a new project (closing any currently open project (without saving it)).

Syntax:

"NewProject units [CTSet [numBits startRatio endRatio]"

where:

"units" denotes the default units of the created project and of the 3D data to be passed in subsequent calls: 0-km, 1-m, 2-cm, 3-mm, 4-mi, 5-yd, 6-ft, 7-in, 8-sf (survey feet). CTSet is the coded target set (1=8-bit, 2=10-bit, 3=12-bit, 4=User defined). If CTSet=4, the user settings for numBits, startRatio and endRatio are passed in.  See Coded Targets section for more information.

If you do not specify the CTSet, the default target type will be used, and this can be set on the Coded Targets page of Preferences - Marking and Referencing.

Return:

"1" if successful or "0" if not.

Failure returns

- insufficient number of parameters

- 'units' is out of range

Example:

"NewProject 3"

return: "1"