Message 1 of 3
Python SendCommand PLOT convert to jpeg

Not applicable
05-05-2020
01:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am using python to convert dwg to jpeg.
Currently, I am using SendCommand and "_-PLOT" to convert to jpg:
acad = win32com.client.dynamic.Dispatch("AutoCAD.Application")
doc = acad.ActiveDocument
doc.SendCommand('_-PLOT ' 'T \n' 'Model \n' 'plotter_ARD\n' +str(size)+'\n' 'Pionowo\n' 'Nie\n' 'Zakres\n' 'Dopasuj\n' '\n' 'Nie\n' '.\n' 'Tak\n' '\n' 'N\n' 'T\n')
everything works correctly, but there is a file dialog in the end:
I would like to fill it without pyautogui. Is there a way to fill it with python AutoCAD libraries?