Table of Contents

Class CoreContext

Namespace
Macad.Core
Assembly
Macad.Core.dll

The CoreContext is a singleton holding the global state of the core module. Most functionality of the classes in the core module access the state using this class.

public abstract class CoreContext : BaseObject
Inheritance
CoreContext

Properties

public static CoreContext Current { get; set; }

The current instance of the CoreContext. It will be set automatically when a new context class is instantiated.

Property Value: CoreContext

public virtual Model Document { get; set; }
Property Value: Model

public LayerCollection Layers { get; }
Property Value: LayerCollection

public MessageHandler MessageHandler { get; }
Property Value: MessageHandler

public ParameterSets Parameters { get; }
Property Value: ParameterSets

public UndoHandler UndoHandler { get; }
Property Value: UndoHandler

public virtual Viewport Viewport { get; protected set; }
Property Value: Viewport

public virtual Workspace Workspace { get; protected set; }
Property Value: Workspace

Methods

public void Dispose()

public virtual T LoadLocalSettings<T>(string name) where T : class
name string
Returns: T
T

public virtual void SaveLocalSettings(string name, object obj)
name string
obj object

public virtual void SaveSettings()