Skip To Content

Create Building Scene Layer Package


Creates a scene layer package (.slpk file) from a building layer input.


  • Building layers are created from Revit data. For more information on working with Revit data, see What is Revit data?

  • For more information on building scene layers, see Building scene layer.

  • The output coordinate system should match the spatial reference of the web scene in which it will be displayed. If the intended display environment will be a global web scene, the output coordinate system must use GCS WGS84. A vertical coordinate system for a global scene must be ellipsoidal, EGM2008 Geoid, or EGM96 Geoid.

  • The following are considerations for how z-coordinates should be defined in the 3D data being processed:

    • If the output scene layer package will have x,y coordinates in GCS WGS84, the z-coordinate system can be defined using any coordinate system with WGS84 as the datum or EGM96 or EGM2008 through the Output Coordinate System parameter. If the z-coordinate system is undefined, vertical units will be in meters.
    • If the output scene layer package will have x,y coordinates in a projected coordinate system, the z-coordinate system can be defined only if the datum matches the x,y coordinates. If no z-coordinate system is specified, the linear units of the undefined z-coordinate system will match the x,y, coordinate system.

  • A scene layer package with a file size of less than 1 GB can be uploaded directly to ArcGIS Online or Portal for ArcGIS in a browser. If it is larger than 1 GB, use the Share Package tool to upload directly to ArcGIS Online or Portal for ArcGIS.


CreateBuildingSceneLayerPackage_management (in_dataset, out_slpk, {out_coor_system}, {transform_method})
ParameterExplanationData Type

The input building layer.

Building Layer

The output scene layer package (.slpk).


The spatial reference of the output scene layer package. It can be any projected coordinate system or GCS_WGS_1984. If a z-datum is defined, the linear unit must match that of the horizontal coordinate system. If the horizontal coordinate system is expressed in geographic coordinates, the z-datum must use meters. GCS_WGS_1984 is the default coordinate system. NAVD 88 is the default vertical coordinate system. The spatial reference can be specified by any of the following:

  • Specifying the path to a .prj file
  • Referencing a geodataset with the desired spatial reference
  • Using an arcpy.SpatialReference object

Spatial Reference

The datum transformation method that will be used when the input layer's spatial reference uses a datum that differs from the output coordinate system. All transformations are bidirectional, regardless of the direction implied by their names. For example, NAD_1927_to_WGS_1984_3 will work correctly even if the datum conversion is from WGS 1984 to NAD 1927.


The ArcGIS Coordinate System data is required for vertical datum transformations between ellipsoidal and gravity-related and two gravity-related datums.


Code sample

CreateBuildingSceneLayerPackage example (Python window)

The following script demonstrates how to use the CreateBuildingSceneLayerPackage tool in the Python window.

import arcpy'c:\temp\buildings.lyrx',


This tool does not use any geoprocessing environments.

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes

Related topics