How do I create a new layout document using one of the built-in templates?

I’m sure the answer applies to all the built-in templates, but I’m specifically looking for Plain Tabloid Landscape. I suspect it will involve Sketchup.find_support_file, but I’m not sure what the options are.

There are a couple of API request issues open for this:

These discuss some of the problems especially on the Mac platform.

I did cobble together a method to parse the JSON preference file to extract a list of templates.

That was enough to get what I needed, thanks.

template_file_name = "#{Sketchup.find_support_file("../LayOut/templates/Paper")}\\Plain Paper\\Tabloid Landscape.layout"
doc =
1 Like

But does it work on Mac also?

Good point. I’m rethinking this anyway, and plan to have the user select a template with the file dialog.