RS - open new template "Small Objects - Millimeters.3dm" ( all languages )

is it possible to script open new template “Small Objects - Millimeters.3dm”- for all regional languages ?

thanks,
Keith

I guess the “neanderthal” way would be to put a lookup table in your script with all the localized names of the template files, detect what language Rhino is running in with LocaleID() and insert the appropriate name string into your command string.

Another way might be to open any kind of blank document with the default template, and then via the script, set all the characteristics needed - units, tolerances, layer arrangement, etc… All those settings are accessible to Rhinoscript.

–Mitch

@Helvetosaur, can I also call my-own-template file as part of a script - and install with my plugin ?

thanks,
Keith

Is there a way to RhinoScript the grid size and minor / major grid lines ?

OK, got it - rhino.Command “-_New _None _Enter -_DocumentProperties _Grid _MajorLineInterval=10 _ApplyTo=_AllViewports _Enter _Enter”

thanks,
Keith