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

Description:

Adds a line between 2 existing points, and optional assigns the line to a given layer and/or material

Syntax:

“AddLine point1 point2 [LayerName] [MaterialName]"

where:

point1 is the id of the first point, point2 is the id of the second point, and LayerName is the optional layer name to which this line will be added, and MaterialName is the optional material name to which this line will be added. Note the layer and material names are case sensitive.

Return:

"1" if successful, "0" if not successful.

Failure returns

- Wrong number of parameters

- No project loaded

- Either point can not be found

- The layer specified can not be found

- The material specified can not be found

Example:

"AddLine 2 3 Default Red"

return "1"