Hi All,
I’m trying to export my drawings to PDF using Python. I’ve found the example below, but the AddPageView line return ‘None’. It’s a simple enough function I don’t know what to try… but I tried executing the code before and after saving the document - in case that made a difference.
def PDFExport(doc,FName:str):
dpi = 300
pdf_settings = Rhino.FileIO.FilePdf.Create()
layout_name = "A4_Miller"
page_height = 210
page_width = 297
# Create a new view for printing
view = doc.Views.AddPageView(layout_name, page_width, page_height)
I’m using Python via VSCode btw.
Any Suggesions
1 post - 1 participant