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

Description:

Return a cylinder in sequence. See ResetLists and SetIterationType.

Syntax:

"GetNextCylinder"

Return:

"1 n r x1 y1 z1 x2 y2 z2"

where:

n is the Cylinder ID, r is the radius, x1,y1,z1 and x2,y2,z2 are the coordinates of the ends of the cylinder centerline. Coordinates and radius are in project units and are affects by project current scale and rotations. "0" is returned if the command failed.

Failure returns

- incorrect number of parameters

- no project is open

- the end of the list has been reached

Example:

"ResetLists"

"GetNextCylinder"

return "1 1 7.96 234.1 0.3 -984.2 235.2 456.2 -984.0"