.NET

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

ObjectContextManager Class

238 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.

*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 2 of 5 (231 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: 88
Registered: ‎10-03-2011
Message 3 of 5 (217 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 (175 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: 88
Registered: ‎10-03-2011
Message 5 of 5 (160 Views)

Re: ObjectContextManager Class

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

Ah ok, ty.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community