判断图案是否为当前的填充图案。
rhinoscriptsyntax.IsHatchPatternCurrent (hatch_pattern)
rhinoscript.hatch.IsHatchPatternCurrent (hatch_pattern)
hatch_pattern |
必须参数。字符串。现有图案的名称。 |
True |
如果判断成功。 |
False |
如果判断不成功。 |
None |
出错返回空值。 |
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."