Getting access to the Rhino print dialog in C#


I’m writing a plugin that involves printing multiple Layouts at a time through the print Dialogue. I’d like to auto-populate the numbers in the “Multiple Layouts” field - is there a way to do this without doing RhinoApp.RunScript(“-_Print S V M…”)?

It looks like I should be able to use the PrintDialogueUi class (Rhino.UI.Forms.PrintDialogUi), which takes a dsn and persistent settings, but I can’t create an instance of PersistentSettings because the constructor is internal.

I can’t find any documentation on the PrintDialogUi class either.

Any help with how to get this to work would be greatly appreciated.