ArcGIS Pro 2.9 API Reference Guide
CreateScene Method (MapFactory)

ArcGIS.Desktop.Mapping Namespace > MapFactory Class : CreateScene Method
The name of the map
A CIMElevationSource. Pass null to create the scene without a ground elevation surface.
ArcGIS.Core.CIM.MapViewingMode (Optional) Map's default viewing mode. (default value = MapViewingMode.SceneLocal)
Basemap (Optional) Map's basemap which can be the one that is set as the default for the project or one of the ArcGIS Online basemaps. If you want create a map without basemap, set it to Basemap.None. (default value = Basemap.ProjectDefault)
Creates a map of type MapType.Scene ArcGIS.Core.CIM.MapType with a specified ground elevation source. This method must be called on the MCT. Use QueuedTask.Run.
Syntax

Parameters

name
The name of the map
groundElevationSource
A CIMElevationSource. Pass null to create the scene without a ground elevation surface.
defaultViewingMode
ArcGIS.Core.CIM.MapViewingMode (Optional) Map's default viewing mode. (default value = MapViewingMode.SceneLocal)
basemap
Basemap (Optional) Map's basemap which can be the one that is set as the default for the project or one of the ArcGIS Online basemaps. If you want create a map without basemap, set it to Basemap.None. (default value = Basemap.ProjectDefault)

Return Value

A map.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
To open a map, use ProApp.Panes.CreateMapPaneAsync method.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

MapFactory Class
MapFactory Members