<?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: SetWindowToPlot Coordinates in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/setwindowtoplot-coordinates/m-p/1831130#M29609</link>
    <description>Hay Tom,&lt;BR /&gt;
&lt;BR /&gt;
The year is 2008, the month is May and the cad version is AutoCAD 2008. &lt;BR /&gt;
&lt;BR /&gt;
Guess what, I just spent five days trying to solve the same problem. So I guess Autodesk well fix this problem in the AutoCAD 3008.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the Post Tom.&lt;BR /&gt;
&lt;BR /&gt;
-J</description>
    <pubDate>Wed, 14 May 2008 15:55:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-05-14T15:55:47Z</dc:date>
    <item>
      <title>SetWindowToPlot Coordinates</title>
      <link>https://forums.autodesk.com/t5/vba-forum/setwindowtoplot-coordinates/m-p/1831128#M29607</link>
      <description>Does anyone know a reason that 9000 or so would be added to coordinates &lt;BR /&gt;
passed to SetWindowToPlot?&lt;BR /&gt;
&lt;BR /&gt;
    ThisDrawing.ActiveLayout.RefreshPlotDeviceInfo&lt;BR /&gt;
    Set oPltConf = ThisDrawing.PlotConfigurations("DwfExport")&lt;BR /&gt;
    With oPltConf&lt;BR /&gt;
      .PlotType = acWindow&lt;BR /&gt;
      .SetWindowToPlot dLowLt, dUprRt&lt;BR /&gt;
      .UseStandardScale = True&lt;BR /&gt;
      .StandardScale = acScaleToFit&lt;BR /&gt;
    End With&lt;BR /&gt;
&lt;BR /&gt;
If I do a -PLOT at the command line, the coordinates are 'shifted' from what &lt;BR /&gt;
was passed.  I've verified this by drawing a line to the points used above. &lt;BR /&gt;
No UCSs are present...........I'm stumped.  The distance between the lower &lt;BR /&gt;
left/upper right is good.........just shifted 9000 units.</description>
      <pubDate>Thu, 30 Nov 2006 21:16:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/setwindowtoplot-coordinates/m-p/1831128#M29607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-11-30T21:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: SetWindowToPlot Coordinates</title>
      <link>https://forums.autodesk.com/t5/vba-forum/setwindowtoplot-coordinates/m-p/1831129#M29608</link>
      <description>In case anyone else stumbles across something like this, the following 'work &lt;BR /&gt;
around' does work, but I would like to know the true answer to the original &lt;BR /&gt;
post&lt;BR /&gt;
&lt;BR /&gt;
    Dim sPlotString As String&lt;BR /&gt;
    sPlotString = "-plot yes" &amp;amp; vbCr &amp;amp; vbCr &amp;amp; vbCr &amp;amp; vbCr &amp;amp; vbCr &amp;amp; vbCr &amp;amp; &lt;BR /&gt;
vbCr &amp;amp; vbCr &amp;amp; _&lt;BR /&gt;
                  Format(dLowLt(0), "0.00") &amp;amp; "," &amp;amp; Format(dLowLt(1), &lt;BR /&gt;
"0.00") &amp;amp; vbCr &amp;amp; _&lt;BR /&gt;
                  Format(dUprRt(0), "0.00") &amp;amp; "," &amp;amp; Format(dUprRt(1), &lt;BR /&gt;
"0.00") &amp;amp; vbCr &amp;amp; _&lt;BR /&gt;
                  vbCr &amp;amp; vbCr &amp;amp; vbCr &amp;amp; vbCr &amp;amp; vbCr &amp;amp; vbCr &amp;amp; _&lt;BR /&gt;
                  sDwfNam &amp;amp; vbCr&lt;BR /&gt;
    If Dir(sDwfNam) &amp;lt;&amp;gt; "" Then sPlotString = sPlotString &amp;amp; "Y" &amp;amp; vbCr&lt;BR /&gt;
    sPlotString = sPlotString &amp;amp; "n" &amp;amp; vbCr &amp;amp; "y" &amp;amp; vbCr&lt;BR /&gt;
    ThisDrawing.SendCommand sPlotString&lt;BR /&gt;
&lt;BR /&gt;
While googling this problem earlier this afternoon I came across an old &lt;BR /&gt;
(several years) post of mine about a similar issue.  I've used the &lt;BR /&gt;
SetWindowToPlot in a couple of other macros without problem since then, so &lt;BR /&gt;
I'm wondering what I'm missing with all of this.</description>
      <pubDate>Thu, 30 Nov 2006 21:47:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/setwindowtoplot-coordinates/m-p/1831129#M29608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-11-30T21:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: SetWindowToPlot Coordinates</title>
      <link>https://forums.autodesk.com/t5/vba-forum/setwindowtoplot-coordinates/m-p/1831130#M29609</link>
      <description>Hay Tom,&lt;BR /&gt;
&lt;BR /&gt;
The year is 2008, the month is May and the cad version is AutoCAD 2008. &lt;BR /&gt;
&lt;BR /&gt;
Guess what, I just spent five days trying to solve the same problem. So I guess Autodesk well fix this problem in the AutoCAD 3008.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the Post Tom.&lt;BR /&gt;
&lt;BR /&gt;
-J</description>
      <pubDate>Wed, 14 May 2008 15:55:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/setwindowtoplot-coordinates/m-p/1831130#M29609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-14T15:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: SetWindowToPlot Coordinates</title>
      <link>https://forums.autodesk.com/t5/vba-forum/setwindowtoplot-coordinates/m-p/3764696#M29610</link>
      <description>&lt;P&gt;1-29-2013, using AutoCAD 2012... and I'm experiencing this issue on 'some' drawings.&amp;nbsp; Again, no UCS is present... it just doesn't make any sense.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 23:03:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/setwindowtoplot-coordinates/m-p/3764696#M29610</guid>
      <dc:creator>absStructural</dc:creator>
      <dc:date>2013-01-29T23:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: SetWindowToPlot Coordinates</title>
      <link>https://forums.autodesk.com/t5/vba-forum/setwindowtoplot-coordinates/m-p/3764726#M29611</link>
      <description>&lt;P&gt;Well - in case anyone else runs across this... I found the answer here: &lt;A target="_blank" href="https://forums.autodesk.com/t5/Visual-Basic-Customization/ActiveX-SetPlotWindow/td-p/321369"&gt;http://forums.autodesk.com/t5/Visual-Basic-Customization/ActiveX-SetPlotWindow/td-p/321369&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short, SetWindowToPlot expects the values in DCS (Display Coordinate System).&amp;nbsp; DCS is not always equal to WCS - so you have to translate the points from WCS to DCS.&amp;nbsp; I am still a bit puzzled by the fact that 95% of the time (if not more) DCS == WCS.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 23:44:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/setwindowtoplot-coordinates/m-p/3764726#M29611</guid>
      <dc:creator>absStructural</dc:creator>
      <dc:date>2013-01-29T23:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: SetWindowToPlot Coordinates</title>
      <link>https://forums.autodesk.com/t5/vba-forum/setwindowtoplot-coordinates/m-p/11852933#M29612</link>
      <description>Thank you very much for your answer!</description>
      <pubDate>Tue, 28 Mar 2023 10:05:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/setwindowtoplot-coordinates/m-p/11852933#M29612</guid>
      <dc:creator>lbhthriller</dc:creator>
      <dc:date>2023-03-28T10:05:24Z</dc:date>
    </item>
  </channel>
</rss>

