Version 6 SR18 Python Hatch

Some of my python scripts for hatches have broken after updating to SR18.

For example:

import rhinoscriptsyntax as rs

object1 = rs.GetObject()
object2 = rs.GetObject()
pat = rs.HatchPattern(object1)

rs.HatchPattern(object2, pat)

Gives the error

Message: global name ‘_initHatchPatterns’ is not defined

Traceback:
line 240, in HatchPattern, “C:\Users\Alasdair\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\hatch.py”
line 7, in , “C:\Users\Alasdair\AppData\Local\Temp\TempScript.py”

Any ideas on how to fix this?

Cheers

https://mcneel.myjetbrains.com/youtrack/issue/RH-54843

– Dale