Print Layouts from gh?

I have seen some posts on this, but not a lot of solutions. I am generating some layouts with Document User Text that I need to print from Grasshopper. Is there no “out of the box” solution for this? Ideally, it would:

  • allow file path & filename input (instead of standard print window)
  • allow multiple layouts to be exported at once, perhaps as a single PDF, but multiple is fine.
  • MUST be rasterized, since my layout uses some images.

Thanks in advance for any replies - I’m up against a deadline on this one.

dh

Hi @declan,

For starters, the Print command is scriptable. How far does this get you?

– Dale

i have made some components to help with this. I’ve never needed rasterized output but i’m sure that’s not too hard to add

I’ve consolidated some updates here which are an improvement. it’s still needlessly complex, but hope it helps you. I’ve been using this system to procedurally create a series of data derived drawings to aid engineers designing infrastructure. The python components have tooltip help so please refer to that.

So far this can:

  • create layouts and update them
  • add details to layouts
  • print layouts
  • list existing layouts
  • delete list of layouts (if you make a mistake it’s a pain to manually delete more than several layouts!)

There are a bunch of settings for details scale, and display mode and raster vs vector, which will sometimes not work. Views are currently only possible create plan (no perspective views etc)


layouts.gh (33.4 KB)

2 Likes

This is great - thanks @dharman !

1 Like