This document is archived and information here might be outdated.  Recommended version.

IScene.AddLayer Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > 3DAnalyst > ESRI.ArcGIS.Analyst3D > Interfaces > IS > IScene Interface > IScene.AddLayer Method
ArcGIS Developer Help

IScene.AddLayer Method

Adds a layer to the scene.

[Visual Basic .NET]
Public Sub AddLayer ( _
    ByVal pLayer As ILayer, _
    [ByVal autoArrange As Boolean] _
public void AddLayer (
    ILayer pLayer,
    bool autoArrange
  ILayer* pLayer,
  VARIANT_BOOL autoArrange
pLayer [in]

pLayer is a parameter of type ILayer* autoArrange [in, optional, defaultvalue()]
autoArrange is a parameter of type bool

Product Availability

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


The autoArrange parameter controls the ordering of the layers.  If autoArrange is set to TRUE, the layer is added in the proper position as by its weight specified via ILayerPosition::LayerWeight.  By default, this means that the layers are sorted by layer type - Annotation layers on top, followed by Point geometry layers, Polyline geometry layers, and at the bottom Polygon geometry layers.

See Also

IScene Interface

.NET Samples

Creating a toolbar of globe tools