- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am having difficulty in reading .NET Reference Guide.
SymbolTable Class is described here:
https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_DatabaseSer...
But I do not see the following important facts described here.
- SymbolTable is indexed by name
- SymbolTable at index returns ObjectId
I learned them from tutorials and examples.
[additional note on 7/14]
I am asking this to see if I am missing something or if the Reference Guide is missing it.
From the description on the page, I can come up with this code:
foreach (ObjectId id in layertable) {
.....
}
But there seems to be no way to know that LayerTable is indexed, and the index is string type name of the layer..
ObjectId id = layertable[layername];
[additional note on 7/15]
I looked at the definition of SymbolTable class on Visual Studio.
Indeed, it shows the following indexed access.
public ObjectId this[string key] => (ObjectId);
I have to conclude the definition is missing in the reference page.
Solved! Go to Solution.