Sets the left and right pen weights for the component at index in the Double Line Preferences.
FUNCTION SetDLComponentPenWeights(
index : INTEGER;
penWeightLeft : INTEGER;
penWeightRight : INTEGER): BOOLEAN;def vs.SetDLComponentPenWeights(index, penWeightLeft, penWeightRight):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| index | INTEGER | The index of the component. |
| penWeightLeft | INTEGER | The pen weight of the component's left line. |
| penWeightRight | INTEGER | The pen weight of the component's right line. |
CJG 6-27-06
resultOK := SetDLComponentPenWeights(1, 2, 3);import vs
# Sets the left and right pen weights for the component at index in the
# Double Line Preferences.
index = 1
penWeightLeft = 1
penWeightRight = 2
ok = vs.SetDLComponentPenWeights(index, penWeightLeft, penWeightRight)
if ok:
vs.Message('SetDLComponentPenWeights succeeded')
else:
vs.Message('SetDLComponentPenWeights failed')VS Functions: GetDLComponentPenWeights
Availability: from VectorWorks12.5