DR SET ARC SPECS

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 SET ARC SPECS (area; scope; start; lenght)

ParameterTypeDescription
areaLongint4D Draw area
scopeLongint-1 = All, 0 = Selected, >0 = Object ID
startIntegerStarting angle in degrees
lenghtIntegerLength 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.


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