<?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 ToneOperatorParameters for Viewport in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/toneoperatorparameters-for-viewport/m-p/13999082#M86499</link>
    <description>&lt;P&gt;AutoCAD Viewports have color and brightness settings for texture rendering. The user configures them in the _RenderExposure palette. I found in the .Net API that viewports have a ToneOperatorParameters property. This object already has the properties I need, including Exposure. But here's the problem: AutoCAD ignores changes to these properties. Although all the setters are available, you can assign properties to the ToneOperatorParameters object, and you can change the viewport's ToneOperatorParameters itself. No errors occur. But the new values ​​aren't saved! If anyone has worked with these settings, please let me know. I have a feeling this is a bug in the API. I'm testing on AutoCAD 2025 and 2026.&lt;/P&gt;</description>
    <pubDate>Sat, 31 Jan 2026 21:24:36 GMT</pubDate>
    <dc:creator>AVCPlugins</dc:creator>
    <dc:date>2026-01-31T21:24:36Z</dc:date>
    <item>
      <title>ToneOperatorParameters for Viewport</title>
      <link>https://forums.autodesk.com/t5/net-forum/toneoperatorparameters-for-viewport/m-p/13999082#M86499</link>
      <description>&lt;P&gt;AutoCAD Viewports have color and brightness settings for texture rendering. The user configures them in the _RenderExposure palette. I found in the .Net API that viewports have a ToneOperatorParameters property. This object already has the properties I need, including Exposure. But here's the problem: AutoCAD ignores changes to these properties. Although all the setters are available, you can assign properties to the ToneOperatorParameters object, and you can change the viewport's ToneOperatorParameters itself. No errors occur. But the new values ​​aren't saved! If anyone has worked with these settings, please let me know. I have a feeling this is a bug in the API. I'm testing on AutoCAD 2025 and 2026.&lt;/P&gt;</description>
      <pubDate>Sat, 31 Jan 2026 21:24:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/toneoperatorparameters-for-viewport/m-p/13999082#M86499</guid>
      <dc:creator>AVCPlugins</dc:creator>
      <dc:date>2026-01-31T21:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: ToneOperatorParameters for Viewport</title>
      <link>https://forums.autodesk.com/t5/net-forum/toneoperatorparameters-for-viewport/m-p/13999700#M86505</link>
      <description>&lt;P&gt;I think you need to assign/re-assign t&lt;SPAN&gt;he ToneOperatorParameters instance to the Viewport's&amp;nbsp;ToneOperatorParameters property. You may also need to call UpdateDisplay().&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Feb 2026 17:16:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/toneoperatorparameters-for-viewport/m-p/13999700#M86505</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2026-02-01T17:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: ToneOperatorParameters for Viewport</title>
      <link>https://forums.autodesk.com/t5/net-forum/toneoperatorparameters-for-viewport/m-p/14000391#M86509</link>
      <description>&lt;P&gt;I tried reassigning the ToneOperatorParameters object. Immediately afterward, all its values ​​revert to their original values.&amp;nbsp;I see this in step-by-step debugging. &amp;nbsp;And my command calls Regen at the end – this has no effect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public static void&lt;BR /&gt;SetExposure(this Viewport ts, double value)&lt;BR /&gt;{&lt;BR /&gt;if (ts is null || ts.IsErased || ts.ObjectId.IsNull || double.IsNaN(value)) return;&lt;BR /&gt;try&lt;BR /&gt;{&lt;BR /&gt;if (value &amp;lt; -6) value = -6;&lt;BR /&gt;if (value &amp;gt; 21) value = 21;&lt;BR /&gt;using Autodesk.AutoCAD.GraphicsInterface.ToneOperatorParameters tp = ts.ToneOperatorParameters;&lt;BR /&gt;if (tp.ExistsProp("Exposure") &amp;amp;&amp;amp; value != (double)tp.GetProp("Exposure"))&lt;BR /&gt;{&lt;BR /&gt;tp.SetProp("Exposure", value);&lt;BR /&gt;ts.ToneOperatorParameters = tp;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;catch { Debug.Print("Viewport.Exposure error"); }&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2026 08:20:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/toneoperatorparameters-for-viewport/m-p/14000391#M86509</guid>
      <dc:creator>AVCPlugins</dc:creator>
      <dc:date>2026-02-02T08:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: ToneOperatorParameters for Viewport</title>
      <link>https://forums.autodesk.com/t5/net-forum/toneoperatorparameters-for-viewport/m-p/14002678#M86513</link>
      <description>&lt;P&gt;After you assign a value to the property, try issuing the REGEN3 command.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Feb 2026 15:25:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/toneoperatorparameters-for-viewport/m-p/14002678#M86513</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2026-02-03T15:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: ToneOperatorParameters for Viewport</title>
      <link>https://forums.autodesk.com/t5/net-forum/toneoperatorparameters-for-viewport/m-p/14128285#M86863</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2783534"&gt;@AVCPlugins&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I tried reassigning the ToneOperatorParameters object. Immediately afterward, all its values ​​revert to their original values.&amp;nbsp;I see this in step-by-step debugging. &amp;nbsp;And my command calls Regen at the end – this has no effect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public static void&lt;BR /&gt;SetExposure(this Viewport ts, double value)&lt;BR /&gt;{&lt;BR /&gt;if (ts is null || ts.IsErased || ts.ObjectId.IsNull || double.IsNaN(value)) return;&lt;BR /&gt;try&lt;BR /&gt;{&lt;BR /&gt;if (value &amp;lt; -6) value = -6;&lt;BR /&gt;if (value &amp;gt; 21) value = 21;&lt;BR /&gt;using Autodesk.AutoCAD.GraphicsInterface.ToneOperatorParameters tp = ts.ToneOperatorParameters;&lt;BR /&gt;if (tp.ExistsProp("Exposure") &amp;amp;&amp;amp; value != (double)tp.GetProp("Exposure"))&lt;BR /&gt;{&lt;BR /&gt;tp.SetProp("Exposure", value);&lt;BR /&gt;ts.ToneOperatorParameters = tp;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;catch { Debug.Print("Viewport.Exposure error"); }&lt;BR /&gt;}&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;have you checked to commit the outer or any open transction?&lt;/P&gt;&lt;P&gt;also have tried to call&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;viewport.UpdateDisplay();&lt;/EM&gt;&lt;/STRONG&gt; after setting&amp;nbsp;viewportToneOperatorParameters ?&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 18:40:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/toneoperatorparameters-for-viewport/m-p/14128285#M86863</guid>
      <dc:creator>essam-salah</dc:creator>
      <dc:date>2026-05-13T18:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: ToneOperatorParameters for Viewport</title>
      <link>https://forums.autodesk.com/t5/net-forum/toneoperatorparameters-for-viewport/m-p/14128410#M86868</link>
      <description>&lt;P&gt;If the Viewport you're modifying is not the active viewport, Regen will not work. the REGENALL command might.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 20:32:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/toneoperatorparameters-for-viewport/m-p/14128410#M86868</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2026-05-13T20:32:00Z</dc:date>
    </item>
  </channel>
</rss>

