ArcObjects Library Reference  (ArcScene)    

SxDocument CoClass

Provides access to members that control the ArcScene document.

Product Availability

Available with ArcGIS Desktop. Requires 3D Analyst Extension.

Supported Platforms

Windows

Interfaces

Interfaces Description
IBasicDocument (esriArcMapUI) Provides access to members that control the Basic Document.
IBasicDocumentDefaultSymbols (esriArcMapUI) Provides access to members that control Default basic symbols for the document.
IDocument (esriFramework) Provides access to other objects in the document.
IDocument3DDefaultSymbols Provides access to members that control Default 3d symbols for the document.
IDocumentVersion (esriSystem) Provides access to members that control the document version.
ISxDocument Provides access to members that control the ArcScene Document object.
ISxDocumentInfo Provides access to members that control the ArcScene document information.

Event Interfaces

Interfaces Description
ISxDocumentEventsDisp (default) Provides access to events fired by ArcScene.
ISxDocumentEvents Provides access to the events fired by ArcScene.

Remarks

SxDocument is analogous to MxDocument and provides a handle to the running ArcScene document.

[Visual Basic 6.0]

The code below illustrates how a new scene document can be instantiated.

' In VBA, the following two lines of code fire up a new scene document.

  Dim pDoc As IDocument
  Set pDoc = New SxDocument
  

' When using stand-alone Visual Basic to fire up a new scene document, 

' the ArcScene application can be made visible using the following code

  Dim pApp As IApplication
  Set pApp = pDoc.Parent
 
  pApp.Visible = True

Working with Events

[Visual Basic 6.0]

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

Private WithEvents pSxDocument as SxDocument

When implementing ISxDocumentEvents declare variables as follows:

Private WithEvents pSxDocument as SxDocument

 


Feedback Send feedback on this page