version 6.0
DR Calculate perimeter (area; scope) Real
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| scope | Longint | -1 = All, 0 = Selected, >0 = Object ID | |
| Function result | Real | Perimeter 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