<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SendCommand AutoCAD customization Python in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/sendcommand-autocad-customization-python/m-p/9461055#M75702</link>
    <description>&lt;P&gt;Is it because your -plot is to short&lt;/P&gt;&lt;LI-CODE lang="general"&gt; "-PLOT"  "Y"  "" "DWG To PDF" "Iso full bleed A3 (420.00 x 297.00 MM)" "m" "LANDSCAPE"  "N"   "W"  "-6,-6" "807,560" "1=2"  "C" "y" "Acad.ctb" "Y"	"n" "n" "n" pdfName "N" "y"
    &lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 22 Apr 2020 02:50:02 GMT</pubDate>
    <dc:creator>Sea-Haven</dc:creator>
    <dc:date>2020-04-22T02:50:02Z</dc:date>
    <item>
      <title>SendCommand AutoCAD customization Python</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/sendcommand-autocad-customization-python/m-p/9458362#M75701</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to convert dwg to jpg with python script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, I am using Export function to convert to bmp, then to jpg&lt;/P&gt;&lt;P&gt;import win32com.client&lt;/P&gt;&lt;P&gt;acad = win32com.client.dynamic.Dispatch("AutoCAD.Application")&lt;/P&gt;&lt;P&gt;doc = acad.ActiveDocument&lt;/P&gt;&lt;P&gt;doc.Export(directory,"bmp", None)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The resolution from export function is quite low, so I would like to use plotter, but I have problem with SendCommand.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="comment-copy"&gt;doc.SendCommand('_-PLOT ' Y' 'Model ' 'PublishToWeb JPG.pc3 ')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="comment-copy"&gt;It doesn't work correctly. I know that in VBA SendCommand works with &amp;nbsp;'&amp;amp; vbCr +'. How to implement SendComand in Python? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="comment-copy"&gt;Is there another way to optain high resolution? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 09:08:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/sendcommand-autocad-customization-python/m-p/9458362#M75701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-21T09:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: SendCommand AutoCAD customization Python</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/sendcommand-autocad-customization-python/m-p/9461055#M75702</link>
      <description>&lt;P&gt;Is it because your -plot is to short&lt;/P&gt;&lt;LI-CODE lang="general"&gt; "-PLOT"  "Y"  "" "DWG To PDF" "Iso full bleed A3 (420.00 x 297.00 MM)" "m" "LANDSCAPE"  "N"   "W"  "-6,-6" "807,560" "1=2"  "C" "y" "Acad.ctb" "Y"	"n" "n" "n" pdfName "N" "y"
    &lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 22 Apr 2020 02:50:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/sendcommand-autocad-customization-python/m-p/9461055#M75702</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2020-04-22T02:50:02Z</dc:date>
    </item>
  </channel>
</rss>

