.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VB: accessing an extension dictionary

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
765 Views, 3 Replies

VB: accessing an extension dictionary

anyone have some (generic) example VB.NET code for accessing an Extension
Dictionary?

willing to share?
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

Have you looked at the sample in the Labs that Autodesk
posted here?

"Corey A. Layton" wrote in message
news:5202962@discussion.autodesk.com...
anyone have some (generic) example VB.NET code for accessing an Extension
Dictionary?

willing to share?
Message 3 of 4
Anonymous
in reply to: Anonymous

Corey A. Layton wrote:
> willing to share?

my issue is:
the Extension Dictionary that I wish to access
is nested in a DBDictionaryEntry;
and this type has no 'ExtensionDictionary' property,
like a DBDictionary does...

so,
how to get there?

below is an example of how it's done in VBA:
(returns the "AEC_OVERRIDES" extension dictionary from the
"MyCustomWallStyle" AEC Wall Style Definition)

Dim MyObjectRXClass as String
MyObjectRXClass = "AEC_WALL_STYLES"
Set AllDictionaries = ThisDrawing.Dictionaries
Set ClassDictionary = AllDictionaries.Item(MyObjectRXClass)

Dim MyStyleName as String
MyStyleName = "MyCustomWallStyle"

Dim DictRecord As AecDictRecord
Set DictRecord = ClassDictionary.Item(MyStyleName)

Dim ExtDictionary As AcadDictionary
Set ExtDictionary =
DictRecord.GetExtensionDictionary.Item("AEC_OVERRIDES")

I know that I could use an Interop and get there via COM;
but I want it in VB.NET.
Message 4 of 4
Anonymous
in reply to: Anonymous

Paul Richardson wrote:
> Have you looked at the sample in the Labs that Autodesk
> posted here?

no, thanks Paul.

I'll look...

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost