rhinoscriptsyntax.HatchRotation (hatch_id, rotation=None)
rhinoscript.hatch.HatchRotation (hatch_id, rotation=None)
hatch_id |
Required. String or Guid. The identifier of a hatch object. |
rotation |
Optional. Number. The rotation angle in degrees. |
Number |
If a rotation angle is not specified, the current rotation angle if successful. |
Number |
If a rotation angle is specified, the previous rotation angle if successful. |
None |
On error. |
import rhinoscriptsyntax as rs
objects = rs.AllObjects()
if objects:
for obj in objects:
if rs.IsHatch(obj) and rs.HatchRotation(obj)>0:
rs.HatchRotation(obj,0)
AddHatch
AddHatches