HatchPattern

Returns or changes a hatch object's hatch pattern.

Syntax

rhinoscriptsyntax.HatchPattern (hatch, hatch_pattern=None)

rhinoscript.hatch.HatchPattern (hatch, hatch_pattern=None)

Parameters

hatch

Required.  String or Guid.  The identifier of a hatch object.

hatch_pattern

Optional.  String.  The name of an existing hatch pattern to replace the current hatch pattern.

Returns

String

If a hatch pattern name is not specified, the current hatch pattern if successful.

String

If a hatch pattern name is specified, the previous current hatch pattern if successful.

None

On error.

Example

import rhinoscriptsyntax as rs

objects = rs.AllObjects()

if objects is not None:

    for obj in objects:

        if rs.IsHatch(obj) and rs.HatchPattern(obj)=="Solid":

            rs.SelectObject(obj)

Also See

AddHatch

AddHatches

HatchRotation

HatchScale

IsHatch