IsHatchPatternReference

Verifies that a hatch pattern is from a reference file.

Syntax

rhinoscriptsyntax.IsHatchPatternReference(hatch_pattern)

rhinoscript.hatch.IsHatchPatternReference(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.IsHatchPatternReference(hatch):

        print "The hatch pattern is reference."

    else:

        print "The hatch pattern is not reference."

else:

    print "The hatch pattern does not exist."

Also See

IsHatchPattern

IsHatchPatternCurrent