DR SET LINE 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 LINE SPECS (area; scope; startH; startV; endH; endV)

ParameterTypeDescription
areaLongint4D Draw area
scopeLongint-1 = All, 0 = Selected, >0 = Object ID
startHRealHorizontal position of start
startVRealVertical position of start
endHRealHorizontal position of end
endVRealVertical position of end

Description

The command DR SET LINE SPECS resets the endpoints of the line in area described by scope.

If scope equals -1, the command affects the endpoints for the first object in the document.

If scope equals 0, the command affects the endpoints for the first selected object.

If scope is greater than 0, it must be equal to a specific line's ID; the command affects that line's endpoints. If the object does not exist, DR SET LINE SPECS does nothing, and DR Error returns error number 2.

If the object described by scope is not a line, DR SET LINE SPECS does nothing, and DR Error returns error number 47.

The line is repositioned according to startH, startV, endH, and endV. All four coordinates are expressed in base units. Use the DR Scale to base function to convert from scale units to base units. startH, startV, endH, and endV are specified as offsets from the current origin.

Positive values indicate a position below or to the right of the origin. Negative values indicate a position above or to the left of the origin.

Example

See the example for the DR GET LINE SPECS command.

See Also

DR GET LINE SPECS, DR SET ENDMARKS, DR SET LINE ATTRIBUTES.


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