<?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: Add function &amp;quot;Plot Style Table&amp;quot; for windown form in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/add-function-quot-plot-style-table-quot-for-windown-form/m-p/11845520#M9442</link>
    <description>&lt;P&gt;Before you spend a lot of time on that solution, you might want to know that &lt;A href="https://www.bluebeam.com/" target="_blank" rel="noopener"&gt;Bluebeam Revu&lt;/A&gt; has an AutoCAD plugin that stores plot settings and then can generate a pdf with a single click based on the saved settings. You save your settings using the second button, then plot with the first button.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BB plugin.png" style="width: 570px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1193133iC1976CFF3ABF69C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BB plugin.png" alt="BB plugin.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2023 16:21:18 GMT</pubDate>
    <dc:creator>Ed__Jobe</dc:creator>
    <dc:date>2023-03-24T16:21:18Z</dc:date>
    <item>
      <title>Add function "Plot Style Table" for windown form</title>
      <link>https://forums.autodesk.com/t5/net-forum/add-function-quot-plot-style-table-quot-for-windown-form/m-p/11845446#M9441</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have good day!&lt;/P&gt;&lt;P&gt;Currently, In my form, I'm creating a custom table to print DWG TO PDF with c#. In that I want to add function "Plot style table" to custom my form&amp;nbsp;as snapshot below&lt;/P&gt;&lt;P&gt;However, I don't know code to make it into my code. So someone can help me a for that&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="traiduong014969_0-1679672375214.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1193111iDDCD19E65C79E3FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="traiduong014969_0-1679672375214.png" alt="traiduong014969_0-1679672375214.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="traiduong014969_1-1679672528600.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1193113iC275EAF70F113823/image-size/medium?v=v2&amp;amp;px=400" role="button" title="traiduong014969_1-1679672528600.png" alt="traiduong014969_1-1679672528600.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 15:47:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/add-function-quot-plot-style-table-quot-for-windown-form/m-p/11845446#M9441</guid>
      <dc:creator>traiduong014969</dc:creator>
      <dc:date>2023-03-24T15:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Add function "Plot Style Table" for windown form</title>
      <link>https://forums.autodesk.com/t5/net-forum/add-function-quot-plot-style-table-quot-for-windown-form/m-p/11845520#M9442</link>
      <description>&lt;P&gt;Before you spend a lot of time on that solution, you might want to know that &lt;A href="https://www.bluebeam.com/" target="_blank" rel="noopener"&gt;Bluebeam Revu&lt;/A&gt; has an AutoCAD plugin that stores plot settings and then can generate a pdf with a single click based on the saved settings. You save your settings using the second button, then plot with the first button.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BB plugin.png" style="width: 570px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1193133iC1976CFF3ABF69C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BB plugin.png" alt="BB plugin.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 16:21:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/add-function-quot-plot-style-table-quot-for-windown-form/m-p/11845520#M9442</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2023-03-24T16:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add function "Plot Style Table" for windown form</title>
      <link>https://forums.autodesk.com/t5/net-forum/add-function-quot-plot-style-table-quot-for-windown-form/m-p/11845561#M9443</link>
      <description>Yes, this is first step for my practice with make custom function in cad to window form. In that, I can customize for my idea. I need test OK a function, so I can easily make more similar function. So you can make for me code to my suggestion above?</description>
      <pubDate>Fri, 24 Mar 2023 16:47:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/add-function-quot-plot-style-table-quot-for-windown-form/m-p/11845561#M9443</guid>
      <dc:creator>traiduong014969</dc:creator>
      <dc:date>2023-03-24T16:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Add function "Plot Style Table" for windown form</title>
      <link>https://forums.autodesk.com/t5/net-forum/add-function-quot-plot-style-table-quot-for-windown-form/m-p/11845654#M9444</link>
      <description>&lt;P&gt;The plot styles listed in "Plot" dialog box is just the plot style file names (*.ctb) in the AutoCAD's support folder:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;C:\Users\[user name]\AppData\Roaming\Autodesk\[AutoCAD Version]\enu\Plotters\Plot Styles&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, you only need to reach that folder and collect all the *.ctb file names as a string List/Array and use it to populate the dropdown list on your UI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 17:29:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/add-function-quot-plot-style-table-quot-for-windown-form/m-p/11845654#M9444</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2023-03-24T17:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add function "Plot Style Table" for windown form</title>
      <link>https://forums.autodesk.com/t5/net-forum/add-function-quot-plot-style-table-quot-for-windown-form/m-p/11845668#M9445</link>
      <description>Great idea, however I don't know how to way make it, if you can, you can make for example code via your idea for me</description>
      <pubDate>Fri, 24 Mar 2023 17:37:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/add-function-quot-plot-style-table-quot-for-windown-form/m-p/11845668#M9445</guid>
      <dc:creator>traiduong014969</dc:creator>
      <dc:date>2023-03-24T17:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Add function "Plot Style Table" for windown form</title>
      <link>https://forums.autodesk.com/t5/net-forum/add-function-quot-plot-style-table-quot-for-windown-form/m-p/11845795#M9446</link>
      <description>&lt;P&gt;The code should be something like&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;private static List&amp;lt;string&amp;gt; GetPlotStyleList()
        {
            var folder = $"{Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)}\\Autodesk\\C3D 2021\\enu\\Plotters\\Plot Styles";
            var files = System.IO.Directory.GetFiles(folder, "*.ctb");

            return (from f in files select System.IO.Path.GetFileName(f)).ToList();
        }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see, the folder path would be different, depending on the AutoCAD version/vertical product that you are running. For simplicity, I hard coded here as "C3D 2021". You may have to decide the running AutoCAD's version, production name to make this simple code can be used with different version/product of AutoCAD, but since your question is about how to get plot style list, this gives you an idea of how.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 18:48:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/add-function-quot-plot-style-table-quot-for-windown-form/m-p/11845795#M9446</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2023-03-24T18:48:37Z</dc:date>
    </item>
  </channel>
</rss>

