<?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 `eNotInGroup` exception when reading PropertySet values in multi-doc Civil3D sessions in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/enotingroup-exception-when-reading-propertyset-values-in-multi/m-p/14064643#M86679</link>
    <description>&lt;P&gt;&lt;U&gt;Environment&lt;/U&gt;&lt;/P&gt;&lt;P&gt;- Civil3D Versions: 2024 &amp;amp; 2026 (side-by-side)&lt;/P&gt;&lt;P&gt;- API: C# .NET (AEC Property Data)&lt;/P&gt;&lt;P&gt;- Property Type: Calculated / Formula Properties&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;Problem&lt;/U&gt;&lt;BR /&gt;I am encountering a persistent `eNotInGroup` exception when calling `propertySet.GetAt(propertyId)` to retrieve the value of a property where the names (PropertySet and Property) are identical across drawings.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The exception occurs during a single Civil3D session when a drawing is opened after closing a preceding one, when the `propertyId` of the property in the current drawing is numerically higher than the `propertyId`&amp;nbsp; used in the previous drawing.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Observations&lt;/U&gt;&lt;BR /&gt;The code works perfectly for the first drawing opened.&lt;BR /&gt;If a &lt;EM&gt;subsequent&lt;/EM&gt; drawing has a &lt;EM&gt;lower&lt;/EM&gt; numerical `propertyId` for the property, it succeeds.&lt;BR /&gt;If a &lt;EM&gt;subsequent&lt;/EM&gt; drawing has a&amp;nbsp;&lt;EM&gt;higher&amp;nbsp;numerical `propertyId` for the property&lt;/EM&gt;, it throws `eNotInGroup`.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;What I Have Tried (No Success)&lt;/U&gt;&lt;/P&gt;&lt;P&gt;- Iterate through `propertySet.PropertySetData`, check name and ID.&lt;/P&gt;&lt;P&gt;- Toggling SDI/MDI&lt;BR /&gt;- Toggling AECPSDAUTOATTACH&lt;BR /&gt;- Calling `propertySet.Synchronize()` before trying to read the value&lt;BR /&gt;-&amp;nbsp;Added extensive `using` statements to&amp;nbsp;ensure immediate object disposal&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;Questions&lt;/U&gt;&lt;BR /&gt;What else to try?&lt;BR /&gt;Any idea how to solve this?&lt;/P&gt;</description>
    <pubDate>Tue, 24 Mar 2026 12:03:49 GMT</pubDate>
    <dc:creator>Wolfgang.B.Weh</dc:creator>
    <dc:date>2026-03-24T12:03:49Z</dc:date>
    <item>
      <title>`eNotInGroup` exception when reading PropertySet values in multi-doc Civil3D sessions</title>
      <link>https://forums.autodesk.com/t5/net-forum/enotingroup-exception-when-reading-propertyset-values-in-multi/m-p/14064643#M86679</link>
      <description>&lt;P&gt;&lt;U&gt;Environment&lt;/U&gt;&lt;/P&gt;&lt;P&gt;- Civil3D Versions: 2024 &amp;amp; 2026 (side-by-side)&lt;/P&gt;&lt;P&gt;- API: C# .NET (AEC Property Data)&lt;/P&gt;&lt;P&gt;- Property Type: Calculated / Formula Properties&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;Problem&lt;/U&gt;&lt;BR /&gt;I am encountering a persistent `eNotInGroup` exception when calling `propertySet.GetAt(propertyId)` to retrieve the value of a property where the names (PropertySet and Property) are identical across drawings.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The exception occurs during a single Civil3D session when a drawing is opened after closing a preceding one, when the `propertyId` of the property in the current drawing is numerically higher than the `propertyId`&amp;nbsp; used in the previous drawing.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Observations&lt;/U&gt;&lt;BR /&gt;The code works perfectly for the first drawing opened.&lt;BR /&gt;If a &lt;EM&gt;subsequent&lt;/EM&gt; drawing has a &lt;EM&gt;lower&lt;/EM&gt; numerical `propertyId` for the property, it succeeds.&lt;BR /&gt;If a &lt;EM&gt;subsequent&lt;/EM&gt; drawing has a&amp;nbsp;&lt;EM&gt;higher&amp;nbsp;numerical `propertyId` for the property&lt;/EM&gt;, it throws `eNotInGroup`.&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;What I Have Tried (No Success)&lt;/U&gt;&lt;/P&gt;&lt;P&gt;- Iterate through `propertySet.PropertySetData`, check name and ID.&lt;/P&gt;&lt;P&gt;- Toggling SDI/MDI&lt;BR /&gt;- Toggling AECPSDAUTOATTACH&lt;BR /&gt;- Calling `propertySet.Synchronize()` before trying to read the value&lt;BR /&gt;-&amp;nbsp;Added extensive `using` statements to&amp;nbsp;ensure immediate object disposal&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;Questions&lt;/U&gt;&lt;BR /&gt;What else to try?&lt;BR /&gt;Any idea how to solve this?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 12:03:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/enotingroup-exception-when-reading-propertyset-values-in-multi/m-p/14064643#M86679</guid>
      <dc:creator>Wolfgang.B.Weh</dc:creator>
      <dc:date>2026-03-24T12:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: `eNotInGroup` exception when reading PropertySet values in multi-doc Civil3D sessions</title>
      <link>https://forums.autodesk.com/t5/net-forum/enotingroup-exception-when-reading-propertyset-values-in-multi/m-p/14110069#M86815</link>
      <description>&lt;P&gt;I was executing the code async from a modeless window, using...&lt;/P&gt;&lt;PRE&gt;Task.Run(() =&amp;gt; ...&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Use this instead:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;AcCoreApp&lt;/SPAN&gt;.DocumentManager.&lt;SPAN&gt;ExecuteInCommandContextAsync&lt;/SPAN&gt;(...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2026 07:39:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/enotingroup-exception-when-reading-propertyset-values-in-multi/m-p/14110069#M86815</guid>
      <dc:creator>Wolfgang.B.Weh</dc:creator>
      <dc:date>2026-04-29T07:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: `eNotInGroup` exception when reading PropertySet values in multi-doc Civil3D sessions</title>
      <link>https://forums.autodesk.com/t5/net-forum/enotingroup-exception-when-reading-propertyset-values-in-multi/m-p/14128337#M86866</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1211382"&gt;@Wolfgang.B.Weh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;BR /&gt;&lt;U&gt;Problem&lt;/U&gt;&lt;BR /&gt;I am encountering a persistent `eNotInGroup` exception when calling `propertySet.GetAt(propertyId)`&lt;BR /&gt;...&lt;BR /&gt;&lt;U&gt;Questions&lt;/U&gt;&lt;BR /&gt;What else to try?&lt;BR /&gt;Any idea how to solve this?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;i alway call&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;propertySet.PropertyNameToId(propName)&lt;/EM&gt;&lt;/STRONG&gt; before&amp;nbsp;&lt;EM&gt;propertySet.GetAt(propertyId)&lt;/EM&gt; in order to validate the name and the id in one call if it gets the id right i go to&amp;nbsp;&lt;EM&gt;propertySet.GetAt(propertyId)&lt;/EM&gt; if&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;propertySet.PropertyNameToId(propName)&lt;/EM&gt;&lt;/STRONG&gt; failed i'll log/raise/handle the issue and continue&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 19:41:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/enotingroup-exception-when-reading-propertyset-values-in-multi/m-p/14128337#M86866</guid>
      <dc:creator>essam-salah</dc:creator>
      <dc:date>2026-05-13T19:41:59Z</dc:date>
    </item>
  </channel>
</rss>

