@lando.schumpich wrote:
Hello,
For a plugIn I’m writing right now I’m relying on the default Hatchpatterns of R6 for some visualization purposes.
I’m getting the hatchpatterns from the Rhinodoc with the
FindName Method.
My problem is, that in a new document, the HatchPatternTable does not get loaded at startup, so FindName always returns null until i go to the optionsPage of the HatchPatterns or actually run the Hatch command.Is There a way to force Rhino to load its standard HatchPatternTable in the doc?
You can test the behaviour im talking about with this simple python code in a new RhinoDoc:
import scriptcontext as sc print sc.doc.HatchPatterns.FindName("Solid")
Many Thanks, Lando
Posts: 1
Participants: 1