<?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 Betreff: Plot to pdf automaticaly using acwindow as a plotType in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/plot-to-pdf-automaticaly-using-acwindow-as-a-plottype/m-p/10545803#M3168</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#333399"&gt;&amp;gt;&amp;gt; but you still have to insert the corners manually&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Well, how could the coordinates be found by your program?&lt;/P&gt;
&lt;P&gt;When you ask the user to input lower left point ... how is the user specifying this point?&lt;BR /&gt;Do any rules exist to find this point automatically?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
    <pubDate>Sat, 14 Aug 2021 19:32:10 GMT</pubDate>
    <dc:creator>Alfred.NESWADBA</dc:creator>
    <dc:date>2021-08-14T19:32:10Z</dc:date>
    <item>
      <title>Plot to pdf automaticaly using acwindow as a plotType</title>
      <link>https://forums.autodesk.com/t5/vba-forum/plot-to-pdf-automaticaly-using-acwindow-as-a-plottype/m-p/10534100#M3167</link>
      <description>&lt;P&gt;Hi, I have to create a VBA macro for AutoCAD, but I'm no VBA expert.&lt;/P&gt;&lt;P&gt;The main purpose of the code is to plot dwg files to pdf file automatically&lt;/P&gt;&lt;P&gt;I want to use the acwindow as a plot type but I want the conversion to be automatic&lt;/P&gt;&lt;P&gt;So far I worked on this code, but you still have to insert the corners manually&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Public Sub Example_SetWindowToPlot()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim pdfFile As String&lt;BR /&gt;&amp;nbsp; pdfFile = "D:\stage\output.pdf"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; AppActivate ThisDrawing.Application.Caption&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim point1 As Variant, point2 As Variant&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ' Get first point in window&lt;/P&gt;&lt;P&gt;&amp;nbsp; point1 = ThisDrawing.Utility.GetPoint(, "Click the lower-left of the window to plot.")&lt;BR /&gt;&amp;nbsp; ReDim Preserve point1(0 To 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ' Get second point in window&lt;/P&gt;&lt;P&gt;&amp;nbsp; point2 = ThisDrawing.Utility.GetPoint(, "Click the upper-right of the window to plot.")&lt;BR /&gt;&amp;nbsp; ReDim Preserve point2(0 To 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ThisDrawing.ActiveLayout.SetWindowToPlot point1, point2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ' Read back window information&lt;/P&gt;&lt;P&gt;&amp;nbsp; ThisDrawing.ActiveLayout.GetWindowToPlot point1, point2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; MsgBox "Press any key to plot the following window:" &amp;amp; vbCrLf &amp;amp; vbCrLf &amp;amp; _&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"Lower Left: " &amp;amp; point1(0) &amp;amp; ", " &amp;amp; point1(1) &amp;amp; vbCrLf &amp;amp; _&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"Upper Right: " &amp;amp; point2(0) &amp;amp; ", " &amp;amp; point2(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ThisDrawing.ActiveLayout.PlotType = acWindow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ThisDrawing.ActiveLayout.ConfigName = "DWG to PDF.pc3"&lt;BR /&gt;&amp;nbsp; ThisDrawing.ActiveLayout.CanonicalMediaName = "ISO_A4_(210.00_x_297.00_mm)"&lt;BR /&gt;&amp;nbsp; ThisDrawing.ActiveLayout.CenterPlot = True&lt;BR /&gt;&amp;nbsp; ThisDrawing.ActiveLayout.StandardScale = acScaleToFit&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim result As Boolean&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; result = ThisDrawing.Plot.PlotToFile(pdfFile)&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; If result Then&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; MsgBox "Plotting to pdf file succeeded."&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Else&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; MsgBox "Plotting to pdf file failed."&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 13:28:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/plot-to-pdf-automaticaly-using-acwindow-as-a-plottype/m-p/10534100#M3167</guid>
      <dc:creator>wianeh6700</dc:creator>
      <dc:date>2021-08-10T13:28:53Z</dc:date>
    </item>
    <item>
      <title>Betreff: Plot to pdf automaticaly using acwindow as a plotType</title>
      <link>https://forums.autodesk.com/t5/vba-forum/plot-to-pdf-automaticaly-using-acwindow-as-a-plottype/m-p/10545803#M3168</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#333399"&gt;&amp;gt;&amp;gt; but you still have to insert the corners manually&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Well, how could the coordinates be found by your program?&lt;/P&gt;
&lt;P&gt;When you ask the user to input lower left point ... how is the user specifying this point?&lt;BR /&gt;Do any rules exist to find this point automatically?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Sat, 14 Aug 2021 19:32:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/plot-to-pdf-automaticaly-using-acwindow-as-a-plottype/m-p/10545803#M3168</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2021-08-14T19:32:10Z</dc:date>
    </item>
    <item>
      <title>Betreff: Plot to pdf automaticaly using acwindow as a plotType</title>
      <link>https://forums.autodesk.com/t5/vba-forum/plot-to-pdf-automaticaly-using-acwindow-as-a-plottype/m-p/10546873#M3169</link>
      <description>&lt;P&gt;Hi, thank u for answering&lt;/P&gt;&lt;P&gt;I'm wondering if i can draw a frame or create a layer that contains the limits, is this possible ??&lt;/P&gt;</description>
      <pubDate>Sun, 15 Aug 2021 14:32:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/plot-to-pdf-automaticaly-using-acwindow-as-a-plottype/m-p/10546873#M3169</guid>
      <dc:creator>wianeh6700</dc:creator>
      <dc:date>2021-08-15T14:32:02Z</dc:date>
    </item>
    <item>
      <title>Betreff: Plot to pdf automaticaly using acwindow as a plotType</title>
      <link>https://forums.autodesk.com/t5/vba-forum/plot-to-pdf-automaticaly-using-acwindow-as-a-plottype/m-p/10546894#M3170</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333399"&gt;&lt;EM&gt;&amp;gt;&amp;gt; I'm wondering if i can draw a frame or create a layer &lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333399"&gt;&lt;EM&gt;&amp;gt;&amp;gt; that contains the limits, is this possible ??&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Yes, then you need to either create a selection-set for polylines on this layer (or scan the model-space for such items), then get the extents of these polylines and use them to evaluate lower-left and upper-right point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Sun, 15 Aug 2021 14:48:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/plot-to-pdf-automaticaly-using-acwindow-as-a-plottype/m-p/10546894#M3170</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2021-08-15T14:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Plot to pdf automaticaly using acwindow as a plotType</title>
      <link>https://forums.autodesk.com/t5/vba-forum/plot-to-pdf-automaticaly-using-acwindow-as-a-plottype/m-p/10547189#M3171</link>
      <description>&lt;P&gt;It may be easier for you to use a ready-made solution - &lt;A href="https://www.kdmsoft.net/revers.html" target="_blank" rel="noopener"&gt;Revers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Aug 2021 18:48:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/plot-to-pdf-automaticaly-using-acwindow-as-a-plottype/m-p/10547189#M3171</guid>
      <dc:creator>maratovich</dc:creator>
      <dc:date>2021-08-15T18:48:36Z</dc:date>
    </item>
  </channel>
</rss>

