version 6.0
DR SET LINE ATTRIBUTES (area{; area2; ...; areaN}; scope; pattern; color; width)
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| scope | Longint | -2 = Default, -1 = All, 0 = Selected, >0 = ID | |
| pattern | Integer | Pattern index, -1 = No change | |
| color | Longint | Color value, -1 = No change | |
| width | Real | Line width in points, -1 = No change |
Description
The command DR SET LINE ATTRIBUTES changes the line attributes for the objects in area described by scope. Line attributes are determined by the border of objects.
If scope equals -2, the command sets the default line attributes.
If scope equals -1, the command sets the line attributes for all objects in the document.
If scope equals 0, the command sets the line attributes for the selected objects.
If scope is greater than 0, it must be equal to a specific object's ID and that object's attributes are set. If the object does not exist, DR SET LINE ATTRIBUTES does nothing, and DR Error returns error number 2.
pattern is the number of the pattern in the palette. Patterns have a value in the range of 1 through 36 and are numbered left to right, top to bottom.
color is a long integer that represents the color of the lines. This number can be obtained from the functions DR RGB to color and DR Index to color.
width is a real number that describes the width (thickness) of the line in points (1/72 of an inch).
Passing -1 for each of the last three parameters (pattern, color, and width) leaves that attribute unchanged.
See Also