<?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: Can not display the PlotStyleDialog() dialog box in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/can-not-display-the-plotstyledialog-dialog-box/m-p/4718287#M46271</link>
    <description>&lt;P&gt;The above code codes cannot show PlotStyleDialog.&lt;/P&gt;&lt;P&gt;Can someone solve this problem?Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Sat, 28 Dec 2013 04:30:27 GMT</pubDate>
    <dc:creator>583408432</dc:creator>
    <dc:date>2013-12-28T04:30:27Z</dc:date>
    <item>
      <title>Can not display the PlotStyleDialog() dialog box</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-not-display-the-plotstyledialog-dialog-box/m-p/4713645#M46270</link>
      <description>&lt;P&gt;'I used about three methods are still not solve the problem.&lt;BR /&gt;Dim p As New Autodesk.AutoCAD.Windows.PlotStyleDialog()&lt;BR /&gt;'1.&lt;BR /&gt;p.ShowDialog()&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'2.&lt;BR /&gt;p.PlotStyle = "acad.ctb"&lt;BR /&gt;p.ShowDialog()&lt;BR /&gt;&lt;BR /&gt;'3.&lt;BR /&gt;p.PlotStyle = "C:\Documents and Settings\Administrator\Application Data\Autodesk\AutoCAD 2010\R18.0\chs\Plotters\Plot Styles\acad.ctb"&lt;BR /&gt;p.ShowDialog()&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2013 12:53:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-not-display-the-plotstyledialog-dialog-box/m-p/4713645#M46270</guid>
      <dc:creator>583408432</dc:creator>
      <dc:date>2013-12-24T12:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can not display the PlotStyleDialog() dialog box</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-not-display-the-plotstyledialog-dialog-box/m-p/4718287#M46271</link>
      <description>&lt;P&gt;The above code codes cannot show PlotStyleDialog.&lt;/P&gt;&lt;P&gt;Can someone solve this problem?Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 28 Dec 2013 04:30:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-not-display-the-plotstyledialog-dialog-box/m-p/4718287#M46271</guid>
      <dc:creator>583408432</dc:creator>
      <dc:date>2013-12-28T04:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can not display the PlotStyleDialog() dialog box</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-not-display-the-plotstyledialog-dialog-box/m-p/4719017#M46272</link>
      <description>&lt;P&gt;Confused met to but the solution is simple.&lt;/P&gt;&lt;P&gt;This PlotStyleDialog can only be used in the so called Named Plot Style drawings.&lt;/P&gt;&lt;P&gt;So if you're dialog does not show its probably the Color Depended drawing type -- most drawings still are.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to create a STB style first, then convert the drawing.&lt;/P&gt;&lt;P&gt;Try this before running the program:&lt;/P&gt;&lt;P&gt;Command: CONVERTCTB&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; acad.ctb&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; new.stb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command:&amp;nbsp;CONVERTPSTYLES&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;new.stb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command: NETLOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;youreNamedDLL&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command: psd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using System.IO;

using acadApp = Autodesk.AutoCAD.ApplicationServices.Application;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.PlottingServices;
using Autodesk.AutoCAD.Windows;
using Autodesk.AutoCAD.Publishing;




namespace PlotStyleDialog
{
    public class Class1
    {
        [CommandMethod("psd")]
        public void PlotStyleDlg()
        {
            var psd = new PlotStyleDialog();
            DialogResult dlgRes=psd.ShowDialog();
        }
     }
}

&lt;/PRE&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>Sat, 28 Dec 2013 17:42:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-not-display-the-plotstyledialog-dialog-box/m-p/4719017#M46272</guid>
      <dc:creator>SENL1362</dc:creator>
      <dc:date>2013-12-28T17:42:16Z</dc:date>
    </item>
  </channel>
</rss>

