Where layoutName is variable in my case layoutName is read be iterate each layout. So the simplest sample may be: (setq parameters (list '_n' layoutName '' 'PDFCreator' '_n' '_n' '_y') I don't have any sample in python, just LISP. Where paramerets define paper size, Plot area and so one. To run command You can use: ('_-PLOT' paramerets ) I think the best way is to run command _-PLOT, and use virtual PDF ploter. the error I am getting is given below **e_to_string_', '_username_', '_wrap_dispatch_'] Num_cols = xl_sheet.ncols # Number of columnsĪcad = ('AutoCAD.Application')ĭoc = acad.ActiveDocument # Document object Xl_sheet = xl_workbook.sheet_by_name(sheet_names)ĭwgfiles = filter(os.path.isfile, os.listdir(os.curdir))Ĭwd = os.path.abspath(os.path.curdir) # current working dir Xl_workbook = xlrd.open_workbook('Exported.xls')
I tried looking many documentation none of them answered my question ```įrom os.path import join, dirname, abspathįrom import Table Is there any way to change dwg file AutoCAD to png format or pdf format using python.