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