Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.25 KB

GetDLComponentPenWeights.md

File metadata and controls

51 lines (40 loc) · 1.25 KB

GetDLComponentPenWeights

Description

Gets the pen weights of the left and right sides of the component at index in the Double Line Preferences.

FUNCTION GetDLComponentPenWeights(
				index              : INTEGER;
				VAR penWeightLeft  : INTEGER;
				VAR penWeightRight : INTEGER): BOOLEAN;
def vs.GetDLComponentPenWeights(index):
    return (BOOLEAN, penWeightLeft, penWeightRight)

Parameters

Name Type Description
index INTEGER The index of the component.
penWeightLeft INTEGER Returns the pen weight of the component's left line.
penWeightRight INTEGER Returns the pen weight of the component's right line.

Remarks

CJG 6-27-06

Examples

resultOK := GetDLComponentPenWeights(1, 2, 3);
import vs

# Gets the pen weights of the left and right sides of the component at index
# in the Double Line Preferences.
index = 1

ok, penWeightLeft, penWeightRight = vs.GetDLComponentPenWeights(index)
vs.Message('GetDLComponentPenWeights returned: ' + str((ok, penWeightLeft, penWeightRight)))

See Also

VS Functions: SetDLComponentPenWeights

Version

Availability: from VectorWorks12.5

Category