<?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: simple PDF-Plot by vb.net in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9402035#M20013</link>
    <description>&lt;P&gt;hi !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i will be crazy...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my current Code is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; _Log.Write("CommandString:= " &amp;amp; CommandString)
acDocument.Editor.Command(CommandString)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the log will be&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CommandString:= "_-PLOT" "_No" "PdfRaster1000x1000" "" "_DWG To PDF_NoPreview.pc3" "P:\\KARTEN\\Sielkataster_1000_PDF\\Neu\\2575_2020-03-26.pdf" "_No" "_Yes"

OutputFile4PDF:= P:\\KARTEN\\Sielkataster_1000_PDF\\Neu\\2575_2020-03-26.pdf

**** Fehler ****
unerwarteter Fehler in EBL_MapService &amp;gt; Export_PdfRaster &amp;gt; Generate
Autodesk.AutoCAD.Runtime.Exception: eInvalidInput
   bei Autodesk.AutoCAD.EditorInput.Editor.Command(Object[] parameter)
   bei EBL.MapService.Export_PdfRaster.Generate(OutputDefinition AusgabeFormat) in C:\VSProjects\2019\EBL.MapService\EBL.MapService\cls_Export_PdfRaster.vb:Zeile 287.
           --&amp;gt;  ,2020-03-26 15:55:42&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the plot will not create. When i send into command&amp;nbsp;line the plot will be create&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Befehl: (command "_-PLOT" "_No" "PdfRaster1000x1000" "" "_DWG To PDF_NoPreview.pc3" "P:\\KARTEN\\Sielkataster_1000_PDF\\Neu\\2575_2020-03-26.pdf" "_No" "_Yes")
_-PLOT Detaillierte Plotkonfiguration? [Ja/Nein] &amp;lt;Nein&amp;gt;: _No
Layoutnamen eingeben oder [?] &amp;lt;PdfRaster1000x1000&amp;gt;: PdfRaster1000x1000
Namen für Seiteneinrichtung eingeben &amp;lt;&amp;gt;: Ausgabegerätname eingeben oder [?] &amp;lt;_DWG To PDF.pc3&amp;gt;: _DWG To PDF_NoPreview.pc3
Dateiname angeben &amp;lt;Zeichnung2-PdfRaster1000x1000.pdf&amp;gt;: P:\KARTEN\Sielkataster_1000_PDF\Neu\2575_2020-03-26.pdf Änderungen an der Seiteneinrichtung speichern [Ja/Nein]? &amp;lt;N&amp;gt; _No Plotten fortsetzen [Ja/Nein] &amp;lt;J&amp;gt;: _Yes Tatsächlicher Plotbereich:  1040.00 breit und  1040.00 hoch
Tatsächlicher Plotbereich:  999.91 breit und  999.91 hoch

Ansichtsfenster 2 wird geplottet.

Ansichtsfenster 1 wird geplottet.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did someone have a idea??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards Jan&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2020 15:07:02 GMT</pubDate>
    <dc:creator>jan_tappenbeck</dc:creator>
    <dc:date>2020-03-26T15:07:02Z</dc:date>
    <item>
      <title>simple PDF-Plot by vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9399335#M20009</link>
      <description>&lt;P&gt;hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there are several plot-examples to in web with many difficult options and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in my layout everythink is define an only the outputfile i will change in process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the autocad-function EXPORTPDF is the function i will be use manual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did anybody the simple way to craeate (export) the pdf-file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i only need the point when the export will be finish for may other functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in hope....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 14:08:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9399335#M20009</guid>
      <dc:creator>jan_tappenbeck</dc:creator>
      <dc:date>2020-03-25T14:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: simple PDF-Plot by vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9401172#M20010</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If everything is defined, you can script the PLOT command using the Editor.Command() method, only specfying the layout name and the file name with "" (empty string) to validate the default options.&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;var ed = Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument.Editor;
ed.Command("_PLOT", "_No", layoutName, "", "", fileName, "_No", "_Yes");&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 07:31:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9401172#M20010</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2020-03-26T07:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: simple PDF-Plot by vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9401452#M20011</link>
      <description>&lt;P&gt;&lt;U&gt;Hi !&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;thanks for answer. I convert to vb.net and modify&lt;/U&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;acDocument.Editor.Command(New Object() {"_PLOT", "_No", CurrentLayout, "", "", OutputFile4PDF, "_No", "_Yes"})&lt;/LI-CODE&gt;&lt;P&gt;i get following error&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Autodesk.AutoCAD.Runtime.Exception: eInvalidInput
   bei Autodesk.AutoCAD.EditorInput.Editor.Command(Object[] parameter)
   bei EBL.MapService.Export_PdfRaster.Generate(OutputDefinition AusgabeFormat) in C:\VSProjects\2019\EBL.MapService\EBL.MapService\cls_Export_PdfRaster.vb:Zeile 253.
           --&amp;gt;  ,2020-03-26 10:24:54&lt;/LI-CODE&gt;&lt;P&gt;i did not see any mistake -&amp;nbsp; is there a possiblity to get more detail-informations?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry - Copy and Paste of error only works by Code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards Jan&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 10:15:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9401452#M20011</guid>
      <dc:creator>jan_tappenbeck</dc:creator>
      <dc:date>2020-03-26T10:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: simple PDF-Plot by vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9401480#M20012</link>
      <description>&lt;P&gt;Did you try to do it directly at the command line?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Command: _-plot&lt;/P&gt;
&lt;P&gt;Detailed plot configuration? [Yes No] &amp;lt;No&amp;gt;: _No&lt;/P&gt;
&lt;P&gt;Layout name [?] : ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This way you can see which option failed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: you do not need to explicitly build an object array for the Editor.Command() method because it accepts a &lt;A href="https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-features/procedures/parameter-arrays" target="_blank" rel="noopener"&gt;ParamArray&lt;/A&gt;.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;acDocument.Editor.Command("_PLOT", "_No", CurrentLayout, "", "", OutputFile4PDF, "_No", "_Yes")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PPS: scripting AutoCAD commands is much more easy with AutoLISP because you can do it step by step directly at command line:&lt;/P&gt;
&lt;P&gt;(command "_PLOT")&lt;/P&gt;
&lt;P&gt;(command "_PLOT" "_No")&lt;/P&gt;
&lt;P&gt;(command "_PLOT" "_No" layoutName)&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;(command "_PLOT" "_No" layoutName "" "" fileName "_No" "_Yes")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 10:43:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9401480#M20012</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2020-03-26T10:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: simple PDF-Plot by vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9402035#M20013</link>
      <description>&lt;P&gt;hi !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i will be crazy...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my current Code is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; _Log.Write("CommandString:= " &amp;amp; CommandString)
acDocument.Editor.Command(CommandString)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the log will be&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CommandString:= "_-PLOT" "_No" "PdfRaster1000x1000" "" "_DWG To PDF_NoPreview.pc3" "P:\\KARTEN\\Sielkataster_1000_PDF\\Neu\\2575_2020-03-26.pdf" "_No" "_Yes"

OutputFile4PDF:= P:\\KARTEN\\Sielkataster_1000_PDF\\Neu\\2575_2020-03-26.pdf

**** Fehler ****
unerwarteter Fehler in EBL_MapService &amp;gt; Export_PdfRaster &amp;gt; Generate
Autodesk.AutoCAD.Runtime.Exception: eInvalidInput
   bei Autodesk.AutoCAD.EditorInput.Editor.Command(Object[] parameter)
   bei EBL.MapService.Export_PdfRaster.Generate(OutputDefinition AusgabeFormat) in C:\VSProjects\2019\EBL.MapService\EBL.MapService\cls_Export_PdfRaster.vb:Zeile 287.
           --&amp;gt;  ,2020-03-26 15:55:42&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the plot will not create. When i send into command&amp;nbsp;line the plot will be create&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Befehl: (command "_-PLOT" "_No" "PdfRaster1000x1000" "" "_DWG To PDF_NoPreview.pc3" "P:\\KARTEN\\Sielkataster_1000_PDF\\Neu\\2575_2020-03-26.pdf" "_No" "_Yes")
_-PLOT Detaillierte Plotkonfiguration? [Ja/Nein] &amp;lt;Nein&amp;gt;: _No
Layoutnamen eingeben oder [?] &amp;lt;PdfRaster1000x1000&amp;gt;: PdfRaster1000x1000
Namen für Seiteneinrichtung eingeben &amp;lt;&amp;gt;: Ausgabegerätname eingeben oder [?] &amp;lt;_DWG To PDF.pc3&amp;gt;: _DWG To PDF_NoPreview.pc3
Dateiname angeben &amp;lt;Zeichnung2-PdfRaster1000x1000.pdf&amp;gt;: P:\KARTEN\Sielkataster_1000_PDF\Neu\2575_2020-03-26.pdf Änderungen an der Seiteneinrichtung speichern [Ja/Nein]? &amp;lt;N&amp;gt; _No Plotten fortsetzen [Ja/Nein] &amp;lt;J&amp;gt;: _Yes Tatsächlicher Plotbereich:  1040.00 breit und  1040.00 hoch
Tatsächlicher Plotbereich:  999.91 breit und  999.91 hoch

Ansichtsfenster 2 wird geplottet.

Ansichtsfenster 1 wird geplottet.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did someone have a idea??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards Jan&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 15:07:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9402035#M20013</guid>
      <dc:creator>jan_tappenbeck</dc:creator>
      <dc:date>2020-03-26T15:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: simple PDF-Plot by vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9402102#M20014</link>
      <description>&lt;P&gt;It seems to me that you do not have to escape the underscore (\) with an other underscore in VB strings.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;acDocument.Editor.Command("_-PLOT" "_No" "PdfRaster1000x1000" "" "_DWG To PDF_NoPreview.pc3" "P:\KARTEN\Sielkataster_1000_PDF\Neu\2575_2020-03-26.pdf" "_No" "_Yes")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 15:28:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9402102#M20014</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2020-03-26T15:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: simple PDF-Plot by vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9402422#M20015</link>
      <description>&lt;P&gt;&lt;EM&gt;Hi!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;no success!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":tired_face:"&gt;😫&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 17:24:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9402422#M20015</guid>
      <dc:creator>jan_tappenbeck</dc:creator>
      <dc:date>2020-03-26T17:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: simple PDF-Plot by vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9402681#M20016</link>
      <description>&lt;P&gt;Oops!...&lt;/P&gt;
&lt;P&gt;My mistake, arguments have to be separated with commas:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;acDocument.Editor.Command("_-PLOT", "_No", "PdfRaster1000x1000", "", "_DWG To PDF_NoPreview.pc3", "P:\KARTEN\Sielkataster_1000_PDF\Neu\2575_2020-03-26.pdf", "_No", "_Yes")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it still don't work, you can find which argument is not valid usind using CommandAsync and run the code step by step.&lt;/P&gt;
&lt;P&gt;C#&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;        [CommandMethod("TEST")]
        public async static void Test()
        {
            Editor ed = Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument.Editor;
            await ed.CommandAsync("_PLOT");
            await ed.CommandAsync("_No");
            await ed.CommandAsync("PdfRaster1000x1000");
            await ed.CommandAsync("");
            await ed.CommandAsync("_DWG To PDF_NoPreview.pc3");
            await ed.CommandAsync(@"P:\KARTEN\Sielkataster_1000_PDF\Neu\2575_2020-03-26.pdf");
            await ed.CommandAsync("_No");
            await ed.CommandAsync("_Yes");
        }&lt;/LI-CODE&gt;
&lt;P&gt;VB (convert with &lt;A href="https://converter.telerik.com/" target="_blank" rel="noopener"&gt;Telerik&lt;/A&gt;, not tested)&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;CommandMethod("TEST")&amp;gt;
Public Async Shared Sub Test()
    Dim ed As Editor = Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument.Editor
    Await ed.CommandAsync("_PLOT")
    Await ed.CommandAsync("_No")
    Await ed.CommandAsync("PdfRaster1000x1000")
    Await ed.CommandAsync("")
    Await ed.CommandAsync("_DWG To PDF_NoPreview.pc3")
    Await ed.CommandAsync("P:\KARTEN\Sielkataster_1000_PDF\Neu\2575_2020-03-26.pdf")
    Await ed.CommandAsync("_No")
    Await ed.CommandAsync("_Yes")
End Sub&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 18:55:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9402681#M20016</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2020-03-26T18:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: simple PDF-Plot by vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9404041#M20017</link>
      <description>&lt;P&gt;hi !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first i was very hopefull - but the bugfix of "," was not successfull. event _-plot not _plot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then i try to take the async-way. i could not start the new command and so i call like subfunction by my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when my code finish there comes a error of autocad and the applikation crashed. (attachment)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my eror message is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;System: 
Autodesk.AutoCAD.Runtime.Exception: eInvalidInput 
   bei Autodesk.AutoCAD.EditorInput.Editor.CommandAsync(Object[] parameter) 
   bei EBL.MapService.Export_PdfRaster.VB$StateMachine_11_Plottest.MoveNext() in C:\VSProjects\2019\EBL.MapService\EBL.MapService\cls_Export_PdfRaster.vb:Zeile 362.
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde --- 
   bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 
   bei Autodesk.AutoCAD.ApplicationServices.DocumentCollectionExtension.Add(DocumentCollection docCol, String templateFileName)
   bei EBL.MapService.Export_PdfRaster.Generate(OutputDefinition AusgabeFormat) in C:\VSProjects\2019\EBL.MapService\EBL.MapService\cls_Export_PdfRaster.vb:Zeile 172.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the line of "_-plot".&lt;/P&gt;&lt;P&gt;logfileon is active but no information in the log-file!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards Jan&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 10:58:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9404041#M20017</guid>
      <dc:creator>jan_tappenbeck</dc:creator>
      <dc:date>2020-03-27T10:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: simple PDF-Plot by vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9404169#M20018</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3357387"&gt;@jan_tappenbeck&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then i try to take the async-way. i could not start the new command and so i call like subfunction by my code.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Could you elaborate about the context you're calling this code, because you cannot call Editor.Command() in application context.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 11:56:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9404169#M20018</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2020-03-27T11:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: simple PDF-Plot by vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9411950#M20019</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;at the weekend&amp;nbsp;i search less in web and found several examples and by the following i get some success. know my Code Looks like.&lt;/P&gt;&lt;P&gt;thanks for your much time you send to find a way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;jan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; Public Sub RasterPlot(PlotFullName As String)
        ' ------ Quelle: https://www.keanw.com/2007/09/driving-a-basic.html
        _Log.WriteFuncName((New StackTrace).GetFrame(0).GetMethod.Name)
        _Log.WriteParameter("PlotFullName", PlotFullName)
        Dim doc As Autodesk.AutoCAD.ApplicationServices.Document = Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument
        Dim ed As Editor = doc.Editor
        Dim db As Database = doc.Database
        Dim tr As Transaction = db.TransactionManager.StartTransaction()

        Using tr

            Try

                Dim btr As BlockTableRecord = CType(tr.GetObject(db.CurrentSpaceId, Autodesk.AutoCAD.DatabaseServices.OpenMode.ForRead), BlockTableRecord)
                Dim lo As Layout = CType(tr.GetObject(btr.LayoutId, Autodesk.AutoCAD.DatabaseServices.OpenMode.ForRead), Layout)
                Dim pi As PlotInfo = New PlotInfo()
                pi.Layout = btr.LayoutId
                Dim ps As PlotSettings = New PlotSettings(lo.ModelType)
                ps.CopyFrom(lo)
                Dim psv As PlotSettingsValidator = PlotSettingsValidator.Current
                'psv.SetPlotType(ps, Autodesk.AutoCAD.DatabaseServices.PlotType.Extents)
                psv.SetPlotType(ps, Autodesk.AutoCAD.DatabaseServices.PlotType.Window) 'angepasst
                psv.SetUseStandardScale(ps, True)
                psv.SetStdScaleType(ps, StdScaleType.StdScale1To1) 'angepasst
                psv.SetPlotCentered(ps, True)

                ' HINWEIS: hier den internen Namen des Papierformates ermitteln
                ' Dim fPlot As New EBL.Acad.Plotten()
                ' Dim ListPossibleDeviceMedium As String = fPlot.GetPossibleMedia("_DWG To PDF_NoPreview.pc3")

                psv.SetPlotConfigurationName(ps, "_DWG To PDF_NoPreview.pc3", "UserDefinedMetric (1040.00 x 1040.00mm)")
                pi.OverrideSettings = ps
                Dim piv As PlotInfoValidator = New PlotInfoValidator()
                piv.MediaMatchingPolicy = MatchingPolicy.MatchEnabled
                piv.Validate(pi)


                If PlotFactory.ProcessPlotState = ProcessPlotState.NotPlotting Then
                    Dim pe As PlotEngine = PlotFactory.CreatePublishEngine()

                    Using pe
                        Dim ppd As PlotProgressDialog = New PlotProgressDialog(False, 1, True)

                        Using ppd
                            ' -- mit den nachfolgenden ppd-Parametern bin ich nicht klargekommen
                            ''ppd.PlotMsgString(PlotMessageIndex.DialogTitle = "Custom Plot Progress")
                            ''ppd.PlotMsgString(PlotMessageIndex.CancelJobButtonMessage, "Cancel Job")
                            ''ppd.PlotMsgString(PlotMessageIndex.CancelSheetButtonMessage, "Cancel Sheet")
                            ''ppd.PlotMsgString(PlotMessageIndex.SheetSetProgressCaption, "Sheet Set Progress")
                            ''ppd.PlotMsgString(PlotMessageIndex.SheetProgressCaption, "Sheet Progress")
                            ppd.LowerPlotProgressRange = 0
                            ppd.UpperPlotProgressRange = 100
                            ppd.PlotProgressPos = 0
                            ppd.OnBeginPlot()
                            ppd.IsVisible = True
                            pe.BeginPlot(ppd, Nothing)
                            pe.BeginDocument(pi, doc.Name, Nothing, 1, True, PlotFullName)
                            ppd.OnBeginSheet()
                            ppd.LowerSheetProgressRange = 0
                            ppd.UpperSheetProgressRange = 100
                            ppd.SheetProgressPos = 0
                            Dim ppi As PlotPageInfo = New PlotPageInfo()
                            pe.BeginPage(ppi, pi, True, Nothing)
                            pe.BeginGenerateGraphics(Nothing)
                            pe.EndGenerateGraphics(Nothing)
                            pe.EndPage(Nothing)
                            ppd.SheetProgressPos = 100
                            ppd.OnEndSheet()
                            pe.EndDocument(Nothing)
                            ppd.PlotProgressPos = 100
                            ppd.OnEndPlot()
                            pe.EndPlot(Nothing)
                        End Using 'ppd
                    End Using 'pe
                Else
                    ed.WriteMessage(vbLf &amp;amp; "Another plot is in progress.")
                    _Log.WriteAsError("Another plot is in progress!")
                End If

            Catch ex As System.Exception
                _Log.WriteAsError("Fehler bei der Plotausgabe!" &amp;amp; Environment.NewLine &amp;amp; ex.ToString)
            End Try

        End Using
    End Sub&lt;/LI-CODE&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, 31 Mar 2020 12:10:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/simple-pdf-plot-by-vb-net/m-p/9411950#M20019</guid>
      <dc:creator>jan_tappenbeck</dc:creator>
      <dc:date>2020-03-31T12:10:07Z</dc:date>
    </item>
  </channel>
</rss>

