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

Description:

Return the measurement units used by the current project.

Syntax:

"GetUnits"

Return:

"1 xx"

where:

xx is the unit specifier (one of "km", "m", "cm", "mi", "yd", "ft", or "in"). Returns "0" if the command failed.

Failure returns

- incorrect number of parameters

- no project is open

Example:

"GetUnits"

return "1 ft"