ArcObjects Library Reference  (3DAnalyst)    

Scene CoClass

A container for the display and manipulation of data.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires 3D Analyst Extension.

Supported Platforms

Windows, Solaris, Linux

Extended Error Information

Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.

Interfaces

Interfaces Description
IActiveView (esriCarto) Provides access to members that control the active view - the main application window.
IAGAnimationTracks (esriAnimation) Provides access to members that control the animation tracks.
IAnimationTracks Provides access to members that control the scene animation tracks.
IBasicMap (esriCarto) Provides access to members that control the basic map.
IBasicScene2 Provides access to basic members of the scene.
IConnectionPointContainer Supports connection points for connectable objects.
IMapLayers (esriCarto) Provides access to layers.
IPersistStream (esriSystem)
IRelationshipClassCollection (esriCarto) Provides access to members that return the memory relationship classes defined for standalone tables or layers in ArcMap.
IScene Provides access to members that control the scene.
ISceneBookmarks Provides access to members that control the scene bookmarks.
ISelectionEvents (esriCarto) Provides access to events that occur when the selection changes.
IStandaloneTableCollection (esriCarto) Provides access to members that control the standalone table collection.
ISupportErrorInfo Indicates whether a specific interface can return Automation error objects.
ITableCollection (esriCarto) Provides access to members that control a table collection.

Event Interfaces

Interfaces Description
IActiveViewEvents (default) Provides access to events that occur when the state of the active view changes.

Remarks

Scene is to ArcScene what Map is to ArcMap.  There's only one scene object in each ArcScene session.  It's the collection of various layers.  Similar to that in ArcScene, there's also a scene object in a scene viewer control or a later version, scene control.

[Visual Basic 6.0]

'A common way to get hold of the scene object in VBA from within ArcScene:

  dim pDoc as ISxDocument: set pDoc = ThisDocument

  set pScene as IScene: set pScene = pDoc.Scene

  'Some further actions...

Working with Events

[Visual Basic 6.0]

When working with Scene's default outbound interface in Visual Basic 6 declare variables as follows:

Private WithEvents pScene as Scene