Verifies that a hatch pattern is from a reference file.
rhinoscriptsyntax.IsHatchPatternReference(hatch_pattern)
rhinoscript.hatch.IsHatchPatternReference(hatch_pattern)
hatch_pattern |
Required. String. The name of an existing hatch pattern. |
True |
If successful. |
False |
If not successful. |
None |
On error. |
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."