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

Description:

Open a PhotoModeler project file, closing any projects that are currently open. Note the file name should be in DOS format (i.e.., no long file or directory names, no spaces, and no double byte (Asian) characters).

Syntax:

"OpenProject fullPathOfPmrFile"

where:

fullPathOfPmrFile is the DOS path of a PhotoModeler PMR file.

Return:

"1" if project was opened successfully or "0" if not.

Failure returns

- insufficient number of parameters

- the named project could not be opened (illegal file name).

Example:

"OpenProject c:\data\projects\p1\first.pmr"

return: "1"