ObjectContextManager Class

ObjectContextManager Class

Ertqwa
Advocate Advocate
1,351 Views
4 Replies
Message 1 of 5

ObjectContextManager Class

Ertqwa
Advocate
Advocate

Hello Forum,

 

I use the ObjectContextManager class to manage annotation scales.

 

objObjectContextCollection = objDatabase.ObjectContextManager.GetContextCollection("ACDB_ANNOTATIONSCALES");

 

AcDbObjectContextManager:

Exposes the collection of context types supported by the drawing. Each AcDbDatabase exposes an AcDbObjectContextManager which can be used to register, unregister, and enumerate custom context collections.

 

Unfortunally I can't find much information about this class. Can anyone give me some information about what a custom context collection is inside AutoCAD, and what kinds are there? Which strings besides "ACDB_ANNOTATIONSCALES" can be used in GetContextCollection()?

 

Thank you for your time.

0 Likes
Accepted solutions (1)
1,352 Views
4 Replies
Replies (4)
Message 2 of 5

Hallex
Advisor
Advisor

Take a look at this article

http://adndevblog.typepad.com/autocad/2012/05/using-the-net-api-to-add-a-scale-to-a-drawing.html

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
0 Likes
Message 3 of 5

Ertqwa
Advocate
Advocate

Thank you for your response, but that was not my question.

0 Likes
Message 4 of 5

fenton_webb
Autodesk
Autodesk
Accepted solution

The ObjectContextManager is currently only used for Annotation Scaling. However, it was designed to be a generic context object API, meaning that you can create your own Object Context data that utilizes this same object model.




Fenton Webb
AutoCAD Engineering
Autodesk

0 Likes
Message 5 of 5

Ertqwa
Advocate
Advocate

Ah ok, ty.

0 Likes