.NET

Reply
Valued Contributor
99 Posts
4 Kudos
Registered: ‎10-03-2011
Post 1 of 5
Accepted Solution

ObjectContextManager Class

277 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*
1,569 Posts
171 Kudos
Registered: ‎10-08-2008
Post 2 of 5

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
99 Posts
4 Kudos
Registered: ‎10-03-2011
Post 3 of 5

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
352 Posts
27 Kudos
Registered: ‎07-24-2007
Post 4 of 5

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
99 Posts
4 Kudos
Registered: ‎10-03-2011
Post 5 of 5

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
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!