@KelvinC @JorinChi @stevebaer
thank you so much. it works good!
i have one question, i can change the PDF Size manually, if i have all layouts in A4 or A3, or A2…
but what happend if i have different Layoutsize, for example, i have 2X A4, 3XA3, 4XA0…
can you change the script that it automatically get the layousize? it will very helpful.
thank you very much.
"
import Rhino
import scriptcontext as sc
import System.Drawing
import rhinoscriptsyntax as rs
def createSinglePDF(view):
pdf = Rhino.FileIO.FilePdf.Create()
dpi = 300
size = System.Drawing.Size(8.5dpi,11dpi)
settings = Rhino.Display.ViewCaptureSettings(view, size, dpi)
pdf.AddPage(settings)
filename = ‘c:/pdf_output/’+view.PageName+’.pdf’
pdf.Write(filename)
for i in sc.doc.Views:
if type(i) is Rhino.Display.RhinoPageView:
createSinglePDF(i)
"
