.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ObjectContextManager Class

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Ertqwa
789 Views, 4 Replies

ObjectContextManager Class

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.

4 REPLIES 4
Message 2 of 5
Hallex
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
Message 3 of 5
Ertqwa
in reply to: Hallex

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

Message 4 of 5
fenton.webb
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
AutoCAD Engineering
Autodesk

Message 5 of 5
Ertqwa
in reply to: fenton.webb

Ah ok, ty.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost