IsHatchPatternCurrent

Verifies that a hatch pattern is the current hatch pattern.

Syntax

rhinoscriptsyntax.IsHatchPatternCurrent (hatch_pattern)

rhinoscript.hatch.IsHatchPatternCurrent (hatch_pattern)

Parameters

hatch_pattern

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

Returns

True

If successful.

False

If not successful.

None

On error.

Example

import rhinoscriptsyntax as rs

hatch = rs.GetString("Hatch pattern name")

if rs.IsHatchPattern(hatch):

    if rs.IsHatchPatternCurrent(hatch):

        print "The hatch pattern is current."

    else:

        print "The hatch pattern is not current."

else: print "The hatch pattern does not exist."

Also See

IsHatchPattern

IsHatchPatternReference