<?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: set style sheet (plot style table) gives an error in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/set-style-sheet-plot-style-table-gives-an-error/m-p/3142068#M60392</link>
    <description>&lt;P&gt;The same problem by me. Anyone has a solution? Please.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2011 10:06:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-08-31T10:06:20Z</dc:date>
    <item>
      <title>set style sheet (plot style table) gives an error</title>
      <link>https://forums.autodesk.com/t5/net-forum/set-style-sheet-plot-style-table-gives-an-error/m-p/3067734#M60391</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to change the plotstyle table :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If acDerden = True Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; acPlSetVdr.SetCurrentStyleSheet(acPlSet, "Dunne lijnen.ctb")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; acPlSetVdr.SetCurrentStyleSheet(acPlSet, "HP DesignJet 500.ctb")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;﻿I get an error:&lt;/P&gt;&lt;P&gt;************** Exception Text **************&lt;BR /&gt;Autodesk.AutoCAD.Runtime.Exception: eInvalidInput&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Autodesk.AutoCAD.DatabaseServices.PlotSettingsValidator.SetCurrentStyleSheet(PlotSettings plotSet, String styleSheetName)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at autocad_app.vbTekening.Qplot()﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I change the plot style table manualy (with plot, assign plotstyle to layout) then the error does not exist any&lt;/P&gt;&lt;P&gt;more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2011 13:09:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/set-style-sheet-plot-style-table-gives-an-error/m-p/3067734#M60391</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-22T13:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: set style sheet (plot style table) gives an error</title>
      <link>https://forums.autodesk.com/t5/net-forum/set-style-sheet-plot-style-table-gives-an-error/m-p/3142068#M60392</link>
      <description>&lt;P&gt;The same problem by me. Anyone has a solution? Please.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 10:06:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/set-style-sheet-plot-style-table-gives-an-error/m-p/3142068#M60392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-31T10:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: set style sheet (plot style table) gives an error</title>
      <link>https://forums.autodesk.com/t5/net-forum/set-style-sheet-plot-style-table-gives-an-error/m-p/3142588#M60393</link>
      <description>&lt;P&gt;Are you using acPlSet.CopyFrom("whatever layout you are plotting")?&amp;nbsp; According to Kean Walmsley (&lt;A target="_blank" href="http://through-the-interface.typepad.com/through_the_interface/plotting/"&gt;http://through-the-interface.typepad.com/through_the_interface/plotting/&lt;/A&gt;), &amp;nbsp;"We need a PlotSettings object based on the layout settings which we then customize".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your ctb file names are correct and the&amp;nbsp;files exist in the location specified in the acad&amp;nbsp;environment (Plot Style Table Search Path) then it should work.&amp;nbsp; You can also try&amp;nbsp;the plot settings in the Autocad dialog and&amp;nbsp;"Apply to Layout".&amp;nbsp; Then try your code again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 15:59:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/set-style-sheet-plot-style-table-gives-an-error/m-p/3142588#M60393</guid>
      <dc:creator>fieldguy</dc:creator>
      <dc:date>2011-08-31T15:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: set style sheet (plot style table) gives an error</title>
      <link>https://forums.autodesk.com/t5/net-forum/set-style-sheet-plot-style-table-gives-an-error/m-p/3143566#M60394</link>
      <description>&lt;P&gt;I found the solution by myself.&lt;/P&gt;&lt;P&gt;Before you change the currentstylesheet you must refresh the plotsettings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; acPlSetVdr.RefreshLists(acPlSet)&amp;nbsp; --&amp;gt; this works for me&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If acDerden = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; acPlSetVdr.SetCurrentStyleSheet(acPlSet, "Dunne lijnen.ctb")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; acPlSetVdr.SetCurrentStyleSheet(acPlSet, "HP DesignJet 500.ctb")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jacco&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2011 07:17:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/set-style-sheet-plot-style-table-gives-an-error/m-p/3143566#M60394</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-01T07:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: set style sheet (plot style table) gives an error</title>
      <link>https://forums.autodesk.com/t5/net-forum/set-style-sheet-plot-style-table-gives-an-error/m-p/3146800#M60395</link>
      <description>&lt;P&gt;Thank you for your answer. I've missed this method. I've used ﻿﻿﻿﻿﻿﻿﻿﻿GetPlotStyleSheet instead, it works as well.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2011 12:44:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/set-style-sheet-plot-style-table-gives-an-error/m-p/3146800#M60395</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-05T12:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: set style sheet (plot style table) gives an error</title>
      <link>https://forums.autodesk.com/t5/net-forum/set-style-sheet-plot-style-table-gives-an-error/m-p/5313087#M60396</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;I found the solution by myself.&lt;/P&gt;&lt;P&gt;Before you change the currentstylesheet you must refresh the plotsettings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; acPlSetVdr.RefreshLists(acPlSet)&amp;nbsp; --&amp;gt; this works for me&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If acDerden = True Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; acPlSetVdr.SetCurrentStyleSheet(acPlSet, "Dunne lijnen.ctb")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; acPlSetVdr.SetCurrentStyleSheet(acPlSet, "HP DesignJet 500.ctb")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jacco&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Jacco,&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;it works also for me.&lt;/P&gt;&lt;P&gt;andy&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2014 14:00:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/set-style-sheet-plot-style-table-gives-an-error/m-p/5313087#M60396</guid>
      <dc:creator>andy62</dc:creator>
      <dc:date>2014-10-02T14:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: set style sheet (plot style table) gives an error</title>
      <link>https://forums.autodesk.com/t5/net-forum/set-style-sheet-plot-style-table-gives-an-error/m-p/6853633#M60397</link>
      <description>&lt;P&gt;Jdsmit,&lt;/P&gt;&lt;P&gt;Thank you so much!&amp;nbsp;&lt;/P&gt;&lt;P&gt;My life is worth living again!&lt;/P&gt;&lt;P&gt;I've been struggling thru updating a routine.&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 00:38:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/set-style-sheet-plot-style-table-gives-an-error/m-p/6853633#M60397</guid>
      <dc:creator>ken</dc:creator>
      <dc:date>2017-02-04T00:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: set style sheet (plot style table) gives an error</title>
      <link>https://forums.autodesk.com/t5/net-forum/set-style-sheet-plot-style-table-gives-an-error/m-p/8805141#M60398</link>
      <description>&lt;P&gt;This should be picked as the accepted answer. Solved the problem for me.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 15:49:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/set-style-sheet-plot-style-table-gives-an-error/m-p/8805141#M60398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-21T15:49:55Z</dc:date>
    </item>
  </channel>
</rss>

