.NET

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

ObjectContextManager Class

258 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 (251 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: 98
Registered: ‎10-03-2011
Message 3 of 5 (237 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 (195 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: 98
Registered: ‎10-03-2011
Message 5 of 5 (180 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
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.