HatchPatternFillType

Returns the fill type of a hatch pattern. Hatch patterns have one of the following fill types:

Value

Description

0

Solid, uses object color.

1

Lines, uses pattern file definition.

2

Gradient, uses fill color definition.

Syntax

rhinoscriptsyntax.HatchPatternFillType (hatch_pattern)

rhinoscript.hatch.HatchPatternFillType (hatch_pattern)

Parameters

hatch_pattern

Required.  String.  The name of an existing hatch pattern.

Returns

Number

If hatch pattern's fill type if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

patterns = rs.HatchPatternNames()

for pattern in patterns:

    fill = rs.HatchPatternFillType(pattern)

    print pattern, "-", fill

Also See

HatchPatternCount

HatchPatternNames