Verifies the existence of a hatch pattern in the document.
rhinoscriptsyntax.IsHatchPattern(name)
rhinoscript.hatch.IsHatchPattern(name)
name |
Required. String. The name of a hatch pattern. |
True |
If successful. |
False |
If not successful. |
import rhinoscriptsyntax as rs
hatch = rs.GetString("Hatch pattern name")
if rs.IsHatchPattern(hatch): print "The hatch pattern exists."
else: print "The hatch pattern does not exist."