MakePDF_script

Hi,

I’m writing a script to automate part of my job. I’m having trouble getting Rhino Python to generate a PDF of a cut sheet without the user interface popping up. Is there any way to do this?

1234- Copy.3dm (552.2 KB)

Hi Harold,

Did you solve this already?

How about using the comand with a hyphended prefix

rs.Command(‘-Print…

There are more elaborate ways where you setup layouts and export/print those to PDF with the use of Rhino.FileIO.FilePdf but maybe the above solution wil suffice for your needs.

-Willem

Hi Willem,

Not yet. I’ve tried a few approaches, including rs.Command("-Print…") and printing to Rhino PDF first, but it always ends up sending it straight to the printer and printing on paper.

you have to play around with typing in the commandline and using the macroeditor.
use the english version for best compatibility
then your macro - and later your scripted command starts with
-_print _setup _destination

I’ll have to check again, but trying the same thing for a client, I posted quite a while back that some of the macro options didn’t work. ISTR that the response was yes, we know, but it will not get fixed in V8…

okay Thanks