<?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: Plotting in vb.net in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/plotting-in-vb-net/m-p/2471212#M70984</link>
    <description>As normal, I went away and came back to this and managed to find the answer. Line 4 of my code specifies modelspace, you just need to change the value to false.&lt;BR /&gt;
&lt;BR /&gt;
Dim pltSet As PlotSettings = New PlotSettings(True)</description>
    <pubDate>Tue, 21 Apr 2009 09:44:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-04-21T09:44:54Z</dc:date>
    <item>
      <title>Plotting in vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/plotting-in-vb-net/m-p/2471211#M70983</link>
      <description>&lt;P&gt;&lt;BR /&gt;Someone help, my plotinfo isnt validating and I dont see whats wrong!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dim PltInf As PlotInfo = New PlotInfo()&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;Dim PltSetVal As PlotSettingsValidator&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;Dim pltSet As PlotSettings = New PlotSettings(True)&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;Dim PltInfVal As PlotInfoValidator = New PlotInfoValidator()&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;Dim plotEng As PlotEngine = PlotFactory.CreatePublishEngine&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;Dim plotDialog As PlotProgressDialog = New PlotProgressDialog(False, 1, False)&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;For i = ActionList.Items.Count - 1 To 0 Step -1&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.Open(ActionList.Items.Item(i), True)&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;'progress meter&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;pubPage.PrintProgress.Value = ((ActionList.Items.Count * 100) - (i * 100))&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;pubPage.PrintVal.Text = i&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;'Set plot config&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;pltSet = New PlotSettings(True)&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;PltSetVal = PlotSettingsValidator.Current&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;PltInf.Layout = LayoutManager.Current.GetLayoutId("model")&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;PltSetVal.SetPlotConfigurationName(pltSet, lines(8), lines(9))&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;PltSetVal.SetPlotPaperUnits(pltSet, PlotPaperUnit.Millimeters)&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;PltSetVal.SetPlotRotation(pltSet, PlotRotation.Degrees090)&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;PltSetVal.SetPlotType(pltSet, Autodesk.AutoCAD.DatabaseServices.PlotType.Extents)&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;PltSetVal.SetPlotCentered(pltSet, True)&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;PltSetVal.SetCurrentStyleSheet(pltSet, lines(11))&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;PltSetVal.SetCanonicalMediaName(pltSet, lines(9))&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;PltInf.OverrideSettings = pltSet&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;PltSetVal = Nothing&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;PltInfVal.Validate(PltInf)&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;MsgBox("Validated:" &amp;amp; PltInf.IsValidated)&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;If plotEng IsNot Nothing Then&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;plotDialog.IsVisible = True&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;plotDialog.OnBeginPlot()&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;plotEng.BeginPlot(plotDialog, Nothing)&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;plotEng.BeginDocument(PltInf, ActionList.Items.Item(i), Nothing, lines(10), False, Nothing)&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;Dim pageinfo As PlotPageInfo = New PlotPageInfo()&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;plotDialog.OnBeginSheet()&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;plotEng.BeginPage(pageinfo, PltInf, True, Nothing)&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;plotEng.BeginGenerateGraphics(Nothing)&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;plotEng.EndGenerateGraphics(Nothing)&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;plotEng.EndPage(Nothing)&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;'plotDialog.OnEndSheet()&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;plotEng.EndDocument(Nothing)&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;plotEng.EndPlot(Nothing)&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;plotDialog.OnEndPlot()&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;End If&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;pltSet.Dispose()&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;PltInfVal.Dispose()&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;PltInf.Dispose()&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;plotDialog.Dispose()&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;plotEng.Dispose()&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;Next&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2009 14:37:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/plotting-in-vb-net/m-p/2471211#M70983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-20T14:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting in vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/plotting-in-vb-net/m-p/2471212#M70984</link>
      <description>As normal, I went away and came back to this and managed to find the answer. Line 4 of my code specifies modelspace, you just need to change the value to false.&lt;BR /&gt;
&lt;BR /&gt;
Dim pltSet As PlotSettings = New PlotSettings(True)</description>
      <pubDate>Tue, 21 Apr 2009 09:44:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/plotting-in-vb-net/m-p/2471212#M70984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-21T09:44:54Z</dc:date>
    </item>
  </channel>
</rss>

