Gets the left and right side pen styles of the component at index in the Double Line Preferences.
FUNCTION GetDLCompPenStylesN(
index : INTEGER;
VAR penStyleLeft : LONGINT;
VAR penStyleRight : LONGINT): BOOLEAN;def vs.GetDLCompPenStylesN(index):
return (BOOLEAN, penStyleLeft, penStyleRight)| Name | Type | Description |
|---|---|---|
| index | INTEGER | The index of the component. |
| penStyleLeft | LONGINT | Returns the pen style of the component's left line. Positive values for patters, negative values for line types. |
| penStyleRight | LONGINT | Returns the pen style of the component's right line. Positive values for patterns, negative values for line types. |
resultOK := GetDLCompPenStylesN(1, 2, 3);import vs
# Gets the left and right side pen styles of the component at index in the
# Double Line Preferences.
index = 1
ok, penStyleLeft, penStyleRight = vs.GetDLCompPenStylesN(index)
vs.Message('GetDLCompPenStylesN returned: ' + str((ok, penStyleLeft, penStyleRight)))VS Functions: SetDLCompPenStylesN
Availability: from Vectorworks 2019