Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 1.3 KB

SetDLCompPenStylesN.md

File metadata and controls

53 lines (43 loc) · 1.3 KB

SetDLCompPenStylesN

Description

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

Parameters

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.

Examples

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')

See Also

VS Functions: GetDLCompPenStylesN

Version

Availability: from Vectorworks 2019

Category