Sets the left and right pen styles for a component in an object.
FUNCTION SetComponentPenStyles(
obj : HANDLE;
componentIndex : INTEGER;
leftPenStyle : INTEGER;
rightPenStyle : INTEGER): BOOLEAN;def vs.SetComponentPenStyles(obj, componentIndex, leftPenStyle, rightPenStyle):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| obj | HANDLE | The object. Can be a wall, round wall, slab, Wall Style, Slab Style, the Wall Preferences, or the Slab Preferences. |
| componentIndex | INTEGER | The index of the component. |
| leftPenStyle | INTEGER | The pen style of the component's left line. Positive values for patterns, negative values for dash styles. |
| rightPenStyle | INTEGER | The pen style of the component's right line. Positive values for patterns, negative values for dash styles. |
resultOK := SetComponentPenStyles(obj, 1, 2, 3);import vs
# Sets the left and right pen styles for a component in an object.
obj = vs.FSActLayer() # handle to the first selected object on the active layer
componentIndex = 1
leftPenStyle = 0
rightPenStyle = 0
ok = vs.SetComponentPenStyles(obj, componentIndex, leftPenStyle, rightPenStyle)
if ok:
vs.Message('SetComponentPenStyles succeeded')
else:
vs.Message('SetComponentPenStyles failed')VS Functions: GetComponentPenStyles
Availability: from VectorWorks 12.0