DR Calculate perimeter

4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next

version 6.0


DR Calculate perimeter (area; scope) Real

ParameterTypeDescription
areaLongint4D Draw area
scopeLongint-1 = All, 0 = Selected, >0 = Object ID
Function resultRealPerimeter of the objects described by scope

Description

The command DR Calculate perimeter returns the perimeter of the objects described by scope.

• If scope equals -1, DR Calculate perimeter returns the perimeter of all objects in the document.

• If scope equals 0, DR Calculate perimeter returns the perimeter of the selected objects.

• If scope is greater than 0, it must be equal to a specific object's ID; DR Calculate perimeter returns the perimeter of the object.

If the object does not exist, DR Calculate perimeter returns -32000 and DR Error returns error number 2.

Example

The following example calculates the perimeter of the selected objects in area.

   $Perimeter := DR Calculate perimeter (Area;0)

See Also

DR Calculate area, DR Get ID.


4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next