rhinoscriptsyntax.HatchPattern (hatch, hatch_pattern=None)
rhinoscript.hatch.HatchPattern (hatch, hatch_pattern=None)
hatch |
Required. String or Guid. The identifier of a hatch object. |
hatch_pattern |
Optional. String. The name of an existing hatch pattern to replace the current hatch pattern. |
String |
If a hatch pattern name is not specified, the current hatch pattern if successful. |
String |
If a hatch pattern name is specified, the previous current hatch pattern if successful. |
None |
On error. |
import rhinoscriptsyntax as rs
objects = rs.AllObjects()
if objects is not None:
for obj in objects:
if rs.IsHatch(obj) and rs.HatchPattern(obj)=="Solid":
rs.SelectObject(obj)
AddHatch
AddHatches