Share

EnvironmentManager Object


Description

This object provides methods and properties to get and set the base and override environments for this document. For more information, refer to the Environments overviews.

Methods

Name Description
GetCurrentEnvironment Method that gets the current Environment for this document. This is the environment that the document is currently displayed in.
SetCurrentEnvironment Method that sets the current Environment for this document. This is the environment that the document is currently displayed in. The change is not persisted with the document; i.e. the next time the document is opened, it will show up in its base environment or the override environment if specified.

Properties

Name Description
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
BaseEnvironment Property that returns the Environment that is defined as the default for this document. This is the environment displayed when the document is opened unless an override environment has been specified for this document.
EditObjectEnvironment This method returns the environment associated with the currently active edit object. This is the environment which is the topmost entry in the Application menu. Since Autodesk Inventor 10, the active environment and EditObjectEnvironment are not necessarily the same. Using parallel environments, one can switch to a parallel environment for the same edit object.
OverrideEnvironment Gets and sets the current override environment for this document.
Parent Property that returns the parent of the EnvironmentManager.
Type Returns an ObjectTypeEnum indicating this object's type.

Accessed From

AssemblyDocument.EnvironmentManager, DrawingDocument.EnvironmentManager, PartDocument.EnvironmentManager, PresentationDocument.EnvironmentManager

Samples

Name Description
Play back a simulation This sample plays back an existing dynamic simulation.
Creation of an override environment for a document A new ribbon tab is created and associated with the override environment.

Version

Introduced in version 10

Was this information helpful?