`eNotInGroup` exception when reading PropertySet values in multi-doc Civil3D sessions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Environment
- Civil3D Versions: 2024 & 2026 (side-by-side)
- API: C# .NET (AEC Property Data)
- Property Type: Calculated / Formula Properties
Problem
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.
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` used in the previous drawing.
Observations
The code works perfectly for the first drawing opened.
If a subsequent drawing has a lower numerical `propertyId` for the property, it succeeds.
If a subsequent drawing has a higher numerical `propertyId` for the property, it throws `eNotInGroup`.
What I Have Tried (No Success)
- Iterate through `propertySet.PropertySetData`, check name and ID.
- Toggling SDI/MDI
- Toggling AECPSDAUTOATTACH
- Calling `propertySet.Synchronize()` before trying to read the value
- Added extensive `using` statements to ensure immediate object disposal
Questions
What else to try?
Any idea how to solve this?