PDF Printing Macro/Script Help

Hi everyone,

I often work creating catalogues of drawings such as this one, where I need to create an individual PDF for each box. I was wondering if someone could help me with a macro/script that can help me achieve this much faster.

Mainly I think the script would ask to select all “groups that will be printed”. And cycle through each one of them.

I don’t want to be too picky about it, but ideally there could be an option to choose a predefined bounding box or create an individual one for each group.

Define scale and page size, location, name01 and then run: Zoom selected, print, save.
The name of the file could simply be the name following by the number 01, 02, 03. I am not sure if it would be needed to create a layour or just print directly from viewport…

Thanks for any help and or information of already available tools.

PS: I still haven’t made the switch to Rhino 6, so I would greatly appreciate if the solution could work in Rhino 5.

I will also like to add a follow up question to this one: What is the best way to center a drawing on the layout?

My workflow is as follows.
Create layout > delete default detail > add new detail with no margin > double click layout to enter rhino viewport > select object > zoom select object > double click outside layout to exit rhino viewport > select detail > go to properties > detail > set scale > print > save.

I need to repeat this for each drawing. It would be great if the zoom selected option would zoom to the same scale the layout is already set. Meaning, it would just center the object, not zoom it again, changing the scale of the layout.

How would you guys go about doing this in a more efficient way?

Any ideas?

Hello - for this bit, instead of Zoom Selected use _MoveTargetToObjects - does that help?

-Pascal

Yes, that definitely helps Pascal! Thanks.

Would it be possible to generate a Macro out of the whole process?

Hello - I think your original request, above, is perfectly possible in a script, but I think it would take a fair bit of typing, trial and error, and messing about to get it working the way you ask.

-Pascal