version 6.0
DR SET LINE SPECS (area; scope; startH; startV; endH; endV)
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| scope | Longint | -1 = All, 0 = Selected, >0 = Object ID | |
| startH | Real | Horizontal position of start | |
| startV | Real | Vertical position of start | |
| endH | Real | Horizontal position of end | |
| endV | Real | Vertical 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.