<?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: I use vla-PlotToFile to plot dwg to pdf with acWindow plottype, but pdf is o in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9219679#M80177</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8308409"&gt;@zhanghouli&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Is there some solutions which can find and repair the problems by coding.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;Maybe this will help you: &lt;A href="https://www.kdmsoft.net/revers.html" target="_blank" rel="noopener"&gt;Revers - Automatic batch printing&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&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;</description>
    <pubDate>Wed, 25 Dec 2019 19:30:21 GMT</pubDate>
    <dc:creator>maratovich</dc:creator>
    <dc:date>2019-12-25T19:30:21Z</dc:date>
    <item>
      <title>I use vla-PlotToFile to plot dwg to pdf with acWindow plottype, but pdf is offse</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9218030#M80174</link>
      <description>&lt;P&gt;I use vla-PlotToFile to plot dwg to pdf with acWindow plottype, but pdf is offset. please help, thanks&lt;/P&gt;&lt;PRE&gt;(defun c:myplot ( / )
  (vl-load-com)
  (setq adoc (vla-get-activedocument (vlax-get-acad-object)))
  (setvar "CMDECHO" 0)
  (setvar "BLIPMODE" 0)
  (setvar "OSMODE" 0)
  ;(setvar "LAYOUTREGENCTL" 1)

  (setq lyout (vla-get-activelayout adoc))
  (setq styleSheet "monochrome.ctb")
  (setq cfgName "AutoCAD PDF (High Quality Print).pc3")
  (vla-RefreshPlotDeviceInfo lyout)
  (vla-put-ConfigName lyout CfgName)
  (vla-put-PaperUnits lyout acMillimeters)
  (vla-put-plotrotation lyout ac0degrees)
  (vla-put-PlotType lyout acWindow)
  (vla-put-CanonicalMediaName lyout "ISO_full_bleed_A3_(420.00_x_297.00_mm)")
  (vla-put-PlotWithLineweights lyout :vlax-false)
  (vla-put-PlotWithPlotStyles lyout :vlax-true)
  (vla-put-StyleSheet lyout styleSheet)
  (vla-put-CenterPlot lyout :vlax-true)
  (vla-put-plotrotation lyout ac0degrees)
  
  (vla-put-activelayout adoc lyout)
  

  
  (setq ss (ssget "X" '((0 . "INSERT") (2 . "bztk") (67 . 0))))

  (setq i -1)
  (repeat (sslength ss)
    (setq i (1+ i))
    (setq tk_ent (ssname ss i))
    (vla-GetBoundingBox (vlax-ename-&amp;gt;vla-object tk_ent) 'minpoint 'maxpoint)
    (setq pointTemp1 (vlax-make-safearray vlax-vbDouble '(0 . 1)))
    (vlax-safearray-put-element pointTemp1 0 (vlax-safearray-get-element  minpoint 0))
    (vlax-safearray-put-element pointTemp1 1 (vlax-safearray-get-element  minpoint 1))

    (setq pointTemp2 (vlax-make-safearray vlax-vbDouble '(0 . 1)))
    (vlax-safearray-put-element pointTemp2 0 (vlax-safearray-get-element maxpoint 0))
    (vlax-safearray-put-element pointTemp2 1 (vlax-safearray-get-element maxpoint 1))
    (vla-SetWindowToPlot lyout pointTemp1 pointTemp2)
    (vla-put-activelayout adoc lyout)
    (vla-PlotToFile (vla-get-Plot adoc) (strcat (getvar 'dwgprefix) "draw" (itoa i)))

  )

  (setvar "BLIPMODE" 0)
  (setvar "OSMODE" 231 )
  (setvar "CMDECHO" 1)
)&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Dec 2019 02:45:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9218030#M80174</guid>
      <dc:creator>zhanghouli</dc:creator>
      <dc:date>2019-12-24T02:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: I use vla-PlotToFile to plot dwg to pdf with acWindow plottype, but pdf is o</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9219293#M80175</link>
      <description>&lt;P&gt;The code needs a small change by moving vla-plottype after &lt;SAMP id="GUID-8C7BADF4-C201-4554-9E23-76DC5A60D787__GUID-34403705-8527-4CB8-85CF-F2696C7FA587" class="ph codeph"&gt;SetWindowToPlot&lt;/SAMP&gt;&amp;nbsp; as mentioned in &lt;A href="http://help.autodesk.com/view/ACD/2015/ENU/?guid=GUID-8C7BADF4-C201-4554-9E23-76DC5A60D787" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"The &lt;SAMP id="GUID-8C7BADF4-C201-4554-9E23-76DC5A60D787__GUID-04FD9973-E92F-49E4-91AD-4D0305884FBF" class="ph codeph"&gt;ViewToPlot&lt;/SAMP&gt; property or &lt;SAMP id="GUID-8C7BADF4-C201-4554-9E23-76DC5A60D787__GUID-34403705-8527-4CB8-85CF-F2696C7FA587" class="ph codeph"&gt;SetWindowToPlot&lt;/SAMP&gt; method must be called before you can set the &lt;SAMP id="GUID-8C7BADF4-C201-4554-9E23-76DC5A60D787__GUID-DCBD42D2-B140-48B9-8580-8EE72512BEE2" class="ph codeph"&gt;PlotType&lt;/SAMP&gt; to &lt;SAMP id="GUID-8C7BADF4-C201-4554-9E23-76DC5A60D787__GUID-B59797D8-071E-4A82-BB4B-31C5BB9807FB" class="ph codeph"&gt;acView&lt;/SAMP&gt; or &lt;SAMP id="GUID-8C7BADF4-C201-4554-9E23-76DC5A60D787__GUID-065147E8-024B-4203-AC46-B9719217BED1" class="ph codeph"&gt;acWindow&lt;/SAMP&gt;."&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also the drawing you send has some problems, which does not set the new plot window coordinates.&lt;/P&gt;
&lt;P&gt;So copy the block to a new drawing and run the code again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:myplot ( / )
  (vl-load-com)
  (setq adoc (vla-get-activedocument (vlax-get-acad-object)))
  (setvar "CMDECHO" 0)
  (setvar "BLIPMODE" 0)
  (setvar "OSMODE" 0)
  ;(setvar "LAYOUTREGENCTL" 1)

  (setq lyout (vla-get-activelayout adoc))
  (setq styleSheet "monochrome.ctb")
  (setq cfgName "AutoCAD PDF (High Quality Print).pc3")
  (vla-RefreshPlotDeviceInfo lyout)
  (vla-put-ConfigName lyout CfgName)
  (vla-put-PaperUnits lyout acMillimeters)
  (vla-put-plotrotation lyout ac0degrees)
  &lt;FONT color="#FF0000"&gt;;;&lt;STRIKE&gt;(vla-put-PlotType lyout acWindow)&lt;/STRIKE&gt;&lt;/FONT&gt;
  (vla-put-CanonicalMediaName lyout "ISO_full_bleed_A3_(420.00_x_297.00_mm)")
  (vla-put-PlotWithLineweights lyout :vlax-false)
  (vla-put-PlotWithPlotStyles lyout :vlax-true)
  (vla-put-StyleSheet lyout styleSheet)
  (vla-put-CenterPlot lyout :vlax-true)
  (vla-put-plotrotation lyout ac0degrees)
  
  (vla-put-activelayout adoc lyout)
  

  
  (setq ss (ssget "X" '((0 . "INSERT") (2 . "bztk") (67 . 0))))

  (setq i -1)
  (repeat (sslength ss)
    (setq i (1+ i))
    (setq tk_ent (ssname ss i))
    (vla-GetBoundingBox (vlax-ename-&amp;gt;vla-object tk_ent) 'minpoint 'maxpoint)
    (setq pointTemp1 (vlax-make-safearray vlax-vbDouble '(0 . 1)))
    (vlax-safearray-put-element pointTemp1 0 (vlax-safearray-get-element  minpoint 0))
    (vlax-safearray-put-element pointTemp1 1 (vlax-safearray-get-element  minpoint 1))

    (setq pointTemp2 (vlax-make-safearray vlax-vbDouble '(0 . 1)))
    (vlax-safearray-put-element pointTemp2 0 (vlax-safearray-get-element maxpoint 0))
    (vlax-safearray-put-element pointTemp2 1 (vlax-safearray-get-element maxpoint 1))
    (vla-SetWindowToPlot lyout pointTemp1 pointTemp2)&lt;BR /&gt;   &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt; (vla-put-PlotType lyout acWindow)&lt;/STRONG&gt;&lt;/FONT&gt;
    (vla-put-activelayout adoc lyout)
    (vla-PlotToFile (vla-get-Plot adoc) (strcat (getvar 'dwgprefix) "draw" (itoa i)))

  )

  (setvar "BLIPMODE" 0)
  (setvar "OSMODE" 231 )
  (setvar "CMDECHO" 1)
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2019 08:34:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9219293#M80175</guid>
      <dc:creator>Ajilal.Vijayan</dc:creator>
      <dc:date>2019-12-25T08:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: I use vla-PlotToFile to plot dwg to pdf with acWindow plottype, but pdf is o</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9219655#M80176</link>
      <description>&lt;P&gt;thanks for your help. no error reporting when I set plottype to acwindow after using your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;copying blocks to new drawing file is a solution for offset&lt;/P&gt;&lt;P&gt;but i have&amp;nbsp; a lot of drawing files with this block reference, some is ok, others have the same problems.&lt;/P&gt;&lt;P&gt;Is there some solutions which can find and repair the problems by coding.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Dec 2019 18:44:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9219655#M80176</guid>
      <dc:creator>zhanghouli</dc:creator>
      <dc:date>2019-12-25T18:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: I use vla-PlotToFile to plot dwg to pdf with acWindow plottype, but pdf is o</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9219679#M80177</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8308409"&gt;@zhanghouli&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Is there some solutions which can find and repair the problems by coding.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;Maybe this will help you: &lt;A href="https://www.kdmsoft.net/revers.html" target="_blank" rel="noopener"&gt;Revers - Automatic batch printing&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&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;</description>
      <pubDate>Wed, 25 Dec 2019 19:30:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9219679#M80177</guid>
      <dc:creator>maratovich</dc:creator>
      <dc:date>2019-12-25T19:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: I use vla-PlotToFile to plot dwg to pdf with acWindow plottype, but pdf is o</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9219908#M80178</link>
      <description>&lt;DIV class="lia-message-body-content"&gt;&lt;EM&gt;"Is there some solutions which can find and repair the problems by coding."&lt;/EM&gt;&lt;/DIV&gt;
&lt;P&gt;I am not sure exactly what causing the problem.&lt;/P&gt;
&lt;P&gt;Another solution is&amp;nbsp; to use the command version of plot as shown below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;STRIKE&gt;;(vla-SetWindowToPlot lyout pointTemp1 pointTemp2)&lt;/STRIKE&gt;&lt;BR /&gt;&lt;STRIKE&gt;;(vla-put-PlotType lyout acWindow)&lt;/STRIKE&gt;&lt;BR /&gt;&lt;STRIKE&gt;;(vla-put-activelayout adoc lyout)&lt;/STRIKE&gt;&lt;BR /&gt;&lt;STRIKE&gt;;(vla-PlotToFile (vla-get-Plot adoc) (strcat (getvar 'dwgprefix) "draw" (itoa i)))&lt;/STRIKE&gt;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;;;Replace the above lines with the below lines and try&lt;/FONT&gt;&lt;BR /&gt;(setq p1 (vlax-safearray-&amp;gt;list pointTemp1))&lt;BR /&gt;(setq p2 (vlax-safearray-&amp;gt;list pointTemp2)) &lt;BR /&gt;(command "-plot" "y" "" "" "" "" "" "" "W" p1 p2 "" "" "" "" "" "" (strcat (getvar 'dwgprefix) "draw" (itoa i)) "Y" "")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 05:43:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9219908#M80178</guid>
      <dc:creator>Ajilal.Vijayan</dc:creator>
      <dc:date>2019-12-26T05:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: I use vla-PlotToFile to plot dwg to pdf with acWindow plottype, but pdf is o</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9220010#M80179</link>
      <description>&lt;P&gt;Get "Target" point of the active Viewport and subtract it from WindowToPlot points. I see you are plotting from ModelSpace, so there is always an active ViewPort.&lt;/P&gt;&lt;P&gt;You might want to look into Layout's PlotOrigin as well. Usually it is 0.0,0.0 but it doesn't hurt to account this setting too.&lt;/P&gt;&lt;PRE&gt;(defun c:myplot ( / )
  (vl-load-com)
  (setq adoc (vla-get-activedocument (vlax-get-acad-object)))
  (setvar "CMDECHO" 0)
  (setvar "BLIPMODE" 0)
  (setvar "OSMODE" 0)
  ;(setvar "LAYOUTREGENCTL" 1)

  (setq lyout (vla-get-activelayout adoc))

  &lt;FONT color="#FF0000"&gt;(mapcar 'set '(x y) (vlax-get (vla-get-activeviewport adoc) 'Target))&lt;/FONT&gt;

 
  (setq styleSheet "monochrome.ctb")
  (setq cfgName "AutoCAD PDF (High Quality Print).pc3")
  (vla-RefreshPlotDeviceInfo lyout)
  (vla-put-ConfigName lyout CfgName)
  (vla-put-PaperUnits lyout acMillimeters)
  (vla-put-plotrotation lyout ac0degrees)
  
  &lt;FONT color="#FF0000"&gt;(vlax-invoke  lyout 'SetWindowToPlot '(0.0 0.0) '(420.0 297.0));initializing window to plot&lt;/FONT&gt;
  (vla-put-PlotType lyout acWindow)

  (vla-put-CanonicalMediaName lyout "ISO_full_bleed_A3_(420.00_x_297.00_mm)")
  (vla-put-PlotWithLineweights lyout :vlax-false)
  (vla-put-PlotWithPlotStyles lyout :vlax-true)
  (vla-put-StyleSheet lyout styleSheet)
  (vla-put-CenterPlot lyout :vlax-true)
  (vla-put-plotrotation lyout ac0degrees)
  
  (vla-put-activelayout adoc lyout)
  

  
  (setq ss (ssget "X" '((0 . "INSERT") (2 . "bztk") (67 . 0))))

  (setq i -1)
  (repeat (sslength ss)
    (setq i (1+ i))
    (setq tk_ent (ssname ss i))
    (vla-GetBoundingBox (vlax-ename-&amp;gt;vla-object tk_ent) 'minpoint 'maxpoint)
    (setq pointTemp1 (vlax-make-safearray vlax-vbDouble '(0 . 1)))
    &lt;FONT color="#FF0000"&gt;(vlax-safearray-put-element pointTemp1 0 (- (vlax-safearray-get-element  minpoint 0) x))
    (vlax-safearray-put-element pointTemp1 1 (- (vlax-safearray-get-element  minpoint 1) y))&lt;/FONT&gt;

    (setq pointTemp2 (vlax-make-safearray vlax-vbDouble '(0 . 1)))
    &lt;FONT color="#FF0000"&gt;(vlax-safearray-put-element pointTemp2 0 (- (vlax-safearray-get-element maxpoint 0) x))
    (vlax-safearray-put-element pointTemp2 1 (- (vlax-safearray-get-element maxpoint 1) y))&lt;/FONT&gt;
    (vla-SetWindowToPlot lyout pointTemp1 pointTemp2)
    (vla-put-activelayout adoc lyout)
    (vla-PlotToFile (vla-get-Plot adoc) (strcat (getvar 'dwgprefix) "draw" (itoa i)))

  )

  (setvar "BLIPMODE" 0)
  (setvar "OSMODE" 231 )
  (setvar "CMDECHO" 1)
)&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Dec 2019 08:59:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9220010#M80179</guid>
      <dc:creator>phanaem</dc:creator>
      <dc:date>2019-12-26T08:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: I use vla-PlotToFile to plot dwg to pdf with acWindow plottype, but pdf is o</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9220061#M80180</link>
      <description>&lt;P&gt;It works following your code.&amp;nbsp; thanks you so much&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/314908"&gt;@phanaem&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will learn this code&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 09:59:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9220061#M80180</guid>
      <dc:creator>zhanghouli</dc:creator>
      <dc:date>2019-12-26T09:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: I use vla-PlotToFile to plot dwg to pdf with acWindow plottype, but pdf is o</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9220349#M80181</link>
      <description>&lt;P&gt;Sorry&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/314908"&gt;@phanaem&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After studying your code, there is a&amp;nbsp; doubt：&lt;/P&gt;&lt;P&gt;if I put the following code before "(mapcar 'set '(x y) (vlax-get (vla-get-activeviewport adoc) 'Target))", the old problem will occur again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(setq vp (vla-get-activeviewport adoc))&lt;/P&gt;&lt;P&gt;(vla-put-target vp (vlax-3d-point 0 0 0))&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 14:32:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9220349#M80181</guid>
      <dc:creator>zhanghouli</dc:creator>
      <dc:date>2019-12-26T14:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: I use vla-PlotToFile to plot dwg to pdf with acWindow plottype, but pdf is o</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9220458#M80182</link>
      <description>&lt;P&gt;It seems viewport's target works just by chance, the variable that affect window plotting is in fact (getvar 'target). In your sample it just happens that the 2 are equal.&lt;/P&gt;&lt;P&gt;Please replace (mapcar 'set '(x y) (vlax-get (vla-get-activeviewport adoc) 'Target)) with&amp;nbsp; (mapcar 'set '(x y) (getvar 'target)) and don't change any viewport setting.&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>Thu, 26 Dec 2019 16:08:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/9220458#M80182</guid>
      <dc:creator>phanaem</dc:creator>
      <dc:date>2019-12-26T16:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: I use vla-PlotToFile to plot dwg to pdf with acWindow plottype, but pdf is offse</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/12184413#M80183</link>
      <description>&lt;P&gt;I also encountered the same error as you.&lt;BR /&gt;I detect plot progress unfinished so plot offset error.&lt;BR /&gt;So need to show BatchPlotProgress&lt;BR /&gt;(vlax-put-property (vla-get-plot adoc) 'BatchPlotProgress 1)&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 05:12:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/i-use-vla-plottofile-to-plot-dwg-to-pdf-with-acwindow-plottype/m-p/12184413#M80183</guid>
      <dc:creator>nguyennhattanpt</dc:creator>
      <dc:date>2023-08-21T05:12:35Z</dc:date>
    </item>
  </channel>
</rss>

