version 6.0
DR SET ARC SPECS (area; scope; start; lenght)
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| scope | Longint | -1 = All, 0 = Selected, >0 = Object ID | |
| start | Integer | Starting angle in degrees | |
| lenght | Integer | Length of arc in degrees |
Description
The command DR SET ARC SPECS reshapes the arc in area described by scope.
If scope equals -1, the command affects the first object in the document.
If scope equals 0, the command affects the first selected object.
If scope is greater than 0, it must be equal to a specific arc's ID; DR SET ARC SPECS affects that arc. If the object does not exist, the command does nothing, and DR Error returns error number 2.
If the object described by scope is not an arc, DR SET ARC SPECS does nothing, and DR Error returns error number 47.
start is the beginning of the arc in degrees. This is the endpoint that begins the arc, moving in a counter-clockwise fashion.
length is the length of the arc in degrees. The end of an arc is start + length % 360. Arcs have a maximum length of 359°.
See the diagram for the DR Draw arc function.
Example
The following example reshapes the first ten objects in Area. All ten must be arcs and each is given a length of 18° with a different starting angle.
For ($i;0;9) DR SET ARC SPECS (Area;$i + 1;$i * 18;18) End for
See Also
DR Draw arc, DR GET ARC SPECS, DR Get ID.