.NET

Reply
Valued Contributor
Ertqwa
Posts: 99
Registered: ‎10-03-2011
Message 1 of 5 (273 Views)
Accepted Solution

ObjectContextManager Class

273 Views, 4 Replies
07-21-2012 12:45 AM

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.

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.

*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 2 of 5 (266 Views)

Re: ObjectContextManager Class

07-21-2012 02:18 AM in reply to: Ertqwa

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
Valued Contributor
Ertqwa
Posts: 99
Registered: ‎10-03-2011
Message 3 of 5 (252 Views)

Re: ObjectContextManager Class

07-21-2012 11:39 PM in reply to: Hallex

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

ADN Support Specialist
fenton.webb
Posts: 352
Registered: ‎07-24-2007
Message 4 of 5 (210 Views)

Re: ObjectContextManager Class

07-30-2012 04:36 PM in reply to: Ertqwa

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

Developer Technical Services

Autodesk Developer Network


Valued Contributor
Ertqwa
Posts: 99
Registered: ‎10-03-2011
Message 5 of 5 (195 Views)

Re: ObjectContextManager Class

08-01-2012 10:42 AM in reply to: fenton.webb

Ah ok, ty.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.