I am attempting to batch export layouts as PDF’s. The following script almost works.
import rhinoscriptsyntax as rs cmd="-_SaveAs " cmd+="D:\Desktop\TestPDF.pdf " cmd+="_Enter " rs.Command(cmd)
The issue I am having is I cannot get past SaveAs pdf window that pops up, I can change the default location of file but I still have to hit enter everytime.
I have looked into using ctypes to simulate keystrokes but have not had much success.
Could something in System.Windows.Forms maybe be used for to press the [Enter] key at the end of the script?