i found some issues with the HatchPatternTable in RhinoCommon in the latest release of RhinoWIP. In this post @dale describes, that the predefined Hatch Patterns are not in the table until used by the Hatch command.
When any change happens in the Document Settings they’re all appearing in the HPT. Programmatically this is not possible to achieve.
By using the Hatch command you can add one after the other. In Rhinocommon i could get around this, by calling the Hatch command secretly. I think this is not a clean solution and users will experience some strange Behavior, with this solution. Also if the file
%appdata%\McNeel\Rhinoceros\5.0\Localization\<language>\Support\hatchpatterns.txt exists i need to add the patterns programmatically to the list. Can you provide some information (localization & filepath related) for a stable solution?
Before i start this workaround: Are you planning to get this to work like in Rhino5, where all predefined patterns were listed in the HPT on startup?
Another issue is clearly a bug: Exploded hatch results are always empty.
Thanks in advance,
HatchTableBug.gh (7.7 KB)