<?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: How to enable/disable plot stamp on under plot options in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-enable-disable-plot-stamp-on-under-plot-options/m-p/7807984#M27204</link>
    <description>&lt;P&gt;I don't think so, the&amp;nbsp; status is stored in ..\support\mm.pss (or inches.pss dependent on youre measurement setting).&lt;/P&gt;
&lt;P&gt;As far as i know it is not related to any of those Plot* objects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2018 06:59:02 GMT</pubDate>
    <dc:creator>SENL1362</dc:creator>
    <dc:date>2018-02-26T06:59:02Z</dc:date>
    <item>
      <title>How to enable/disable plot stamp on under plot options</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-enable-disable-plot-stamp-on-under-plot-options/m-p/7801629#M27201</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; How do I enable/disable "plot stamp on" under plot options using .net code?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 23:22:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-enable-disable-plot-stamp-on-under-plot-options/m-p/7801629#M27201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-22T23:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable/disable plot stamp on under plot options</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-enable-disable-plot-stamp-on-under-plot-options/m-p/7802612#M27202</link>
      <description>&lt;P&gt;Change registry Key:&lt;/P&gt;
&lt;P&gt;HKEY_CURRENT_USER\Software\Autodesk\...\Dialogs\Plot Stamp&lt;/P&gt;
&lt;P&gt;PlotStamp(Dword)=0(=off) or 1(=on)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample below turns the PlotStamp ON&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;...
var acadServices = HostApplicationServices.Current;
var acadUsrRootKeyPath = acadServices.UserRegistryProductRootKey;  //Software\Autodesk\AutoCAD\R20.1\ACAD-F002:409
var acadPref = (dynamic)AcadApp.Preferences;
var activeProfileName = acadPref.Profiles.ActiveProfile;
var psKeyPath = Path.Combine("HKEY_CURRENT_USER",acadUsrRootKeyPath, "Profiles", activeProfileName,"Dialogs", "Plot Stamp");
var curPsStatus = (int)Microsoft.Win32.Registry.GetValue(psKeyPath, "PlotStamp", -1);
Microsoft.Win32.Registry.SetValue(psKeyPath, "PlotStamp", 1);
... &lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Feb 2018 11:17:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-enable-disable-plot-stamp-on-under-plot-options/m-p/7802612#M27202</guid>
      <dc:creator>SENL1362</dc:creator>
      <dc:date>2018-02-23T11:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable/disable plot stamp on under plot options</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-enable-disable-plot-stamp-on-under-plot-options/m-p/7807378#M27203</link>
      <description>&lt;P&gt;Thank you for the Registry Solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I set the Plot Stamp Option when I am plotting using the following code. I was thinking can I set the plot stamp using &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PlotSettings, PlotConfig, PlotInfo or&amp;nbsp;PlotInfoValidator&amp;nbsp;Object.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PlotSettings&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; defaultPlotSetting = (&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PlotSettings&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;)sourcePlotSettingsDict.GetAt(printingConfiguration.PageSetupName).GetObject(&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;OpenMode&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.ForRead);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;string&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; defaultDeviceName = defaultPlotSetting.PlotConfigurationName;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;//defaultPlotSetting.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;LayoutManager&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; layMgr = &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;LayoutManager&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.Current;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;DBDictionary&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; layouts = tr.GetObject(db.LayoutDictionaryId, &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;OpenMode&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.ForRead) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;as&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;DBDictionary&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;foreach&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; (&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;DBDictionaryEntry&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; item &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;in&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; layouts)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;Layout&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; theLayout = (&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;Layout&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;)layMgr.GetLayoutId(item.Key).GetObject(&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;OpenMode&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.ForWrite);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;LayoutManager&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.Current.CurrentLayout = item.Key;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; (item.Key != &lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;"Model"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;ed.SwitchToPaperSpace();&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;// PlotSettingsValidator psVal = Autodesk.AutoCAD.DatabaseServices.PlotSettingsValidator.Current;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;theLayout.CopyFrom(defaultPlotSetting);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;theLayout.UpgradeOpen();&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PlotConfigManager&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.RefreshList(&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;RefreshCode&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.All);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;var&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; s = &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PlotConfigManager&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.SetCurrentConfig(defaultDeviceName);&lt;/FONT&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;//DWG To PDF-300.pc3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PlotConfig&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; tds = &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PlotConfigManager&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.CurrentConfig;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;string&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; plotFile = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;null&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;plotFile = pdfDirectory + FormatDrawingName(drawingFileNameWithoutExtension) + item.Key + &lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;".pdf"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;ed.WriteMessage(&lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;"\nPlotting to {0}\n"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, plotFile);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; (System.IO.&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;File&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.Exists(plotFile))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;File&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.Delete(plotFile);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PlotInfo&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; plotInfo = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;new&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PlotInfo&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;plotInfo.Layout = theLayout.ObjectId;&lt;/P&gt;&lt;P&gt;plotInfo.OverrideSettings = defaultPlotSetting;&lt;/P&gt;&lt;P&gt;plotInfo.DeviceOverride = tds;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PlotInfoValidator&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; validator = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;new&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PlotInfoValidator&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;//int itIs = validator.IsCustomPossible(plotInfo);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;validator.MediaMatchingPolicy = Autodesk.AutoCAD.PlottingServices.&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;MatchingPolicy&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.MatchEnabledCustom;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;int&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; itIs = validator.IsCustomPossible(plotInfo);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;validator.Validate(plotInfo);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PlotEngine&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; plotEngine = &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PlotFactory&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.CreatePublishEngine(); &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;plotEngine.BeginPlot(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;null&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;null&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;plotEngine.BeginDocument(plotInfo, &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;Application&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.DocumentManager.MdiActiveDocument.Database.Filename, &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;null&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, 1, &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;true&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, plotFile);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PlotPageInfo&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; pageInfo = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;new&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PlotPageInfo&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;(); &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;ed.WriteMessage(&lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;"\nPlotting {0} Entities, {1} "&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, pageInfo.EntityCount, pageInfo.RasterCount);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;plotEngine.BeginPage(pageInfo, plotInfo, &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;true&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;null&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;plotEngine.BeginGenerateGraphics(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;null&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;plotEngine.EndGenerateGraphics(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;null&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;plotEngine.EndPage(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;null&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;plotEngine.EndDocument(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;null&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;plotEngine.EndPlot(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;null&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;plotEngine.Destroy();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&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>Sun, 25 Feb 2018 21:18:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-enable-disable-plot-stamp-on-under-plot-options/m-p/7807378#M27203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-25T21:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable/disable plot stamp on under plot options</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-enable-disable-plot-stamp-on-under-plot-options/m-p/7807984#M27204</link>
      <description>&lt;P&gt;I don't think so, the&amp;nbsp; status is stored in ..\support\mm.pss (or inches.pss dependent on youre measurement setting).&lt;/P&gt;
&lt;P&gt;As far as i know it is not related to any of those Plot* objects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 06:59:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-enable-disable-plot-stamp-on-under-plot-options/m-p/7807984#M27204</guid>
      <dc:creator>SENL1362</dc:creator>
      <dc:date>2018-02-26T06:59:02Z</dc:date>
    </item>
  </channel>
</rss>

