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

Description:

Return a cylinder in with a specified ID.

Syntax:

"GetCylinder n"

where:

 n is the Cylinder ID.

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

- 'n' does not correspond to an existing cylinder

Example:

"GetCylinder 5"

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