Create Indoor 3D Dataset (Indoors)

Available for an ArcGIS organization licensed with the Indoors extension.

Summary

Creates an indoor 3D dataset containing the necessary multipatch feature classes to maintain floor plan data using a streamlined schema that conforms to the ArcGIS Indoors Information Model. You can use these feature classes when preparing 3D scenes of floor plans and share them across your organization.

Working in 3D allows you to bring real-world elements to the floor plan to support visualizing assets, analyzing space, and editing features such as stairway transitions or other architectural details. This tool allows you to store and manage 3D floor plan data as multipatch feature classes in a geodatabase. These feature classes include attributes that enable floor filter navigation tools in Scene Viewer and other ArcGIS platforms that support scenes.

Usage

  • The target geodatabase must already exist.

  • The target geodatabase can be an enterprise or file geodatabase.

  • Multipatch feature classes can be stored and managed in the target geodatabase.

  • For the Indoor 3D Dataset Name parameter, you can specify a new name for the indoor 3D dataset or use the name of an existing dataset in the target geodatabase. If you use an existing dataset in the target geodatabase, the indoor 3D feature classes will be created in that dataset, provided it has both a horizontal and vertical coordinate system and does not contain indoor 3D feature classes.

  • The following feature classes are created in the Output Dataset parameter value:

    • Details3D
    • Doors3D
    • Facilities3D
    • Furniture3D
    • Transitions3D
    • Units3D
    • Walls3D
    • Windows3D

  • Use the Coordinate System parameter to set the spatial reference of the output indoor 3D dataset. Both a horizontal and a vertical coordinate system are required.

    Note:

    Consider the following when choosing a coordinate system:

Parameters

LabelExplanationData Type
Target Geodatabase

The target file or enterprise geodatabase that will contain the indoor 3D dataset.

Workspace
Indoor 3D Dataset Name

The unique name assigned to the output indoor dataset. The default is Indoor3D. If a dataset with this name exists in the target geodatabase, the indoor 3D feature classes will be created in that dataset.

String
Coordinate System

The horizontal and vertical coordinate system of the output indoor 3D dataset.

Spatial Reference

Derived Output

LabelExplanationData Type
Output Dataset

The indoor 3D dataset that is generated in the target geodatabase.

Feature Dataset

arcpy.indoors.CreateIndoor3DDataset(target_gdb, indoor_dataset_name, spatial_reference)
NameExplanationData Type
target_gdb

The target file or enterprise geodatabase that will contain the indoor 3D dataset.

Workspace
indoor_dataset_name

The unique name assigned to the output indoor dataset. The default is Indoor3D. If a dataset with this name exists in the target geodatabase, the indoor 3D feature classes will be created in that dataset.

String
spatial_reference

The horizontal and vertical coordinate system of the output indoor 3D dataset.

You can specify the spatial reference in several ways including the following:

  • Reference a feature class or feature dataset with the spatial reference you want to apply, such as C:/workspace/myproject.gdb/indoors/details.
  • Define a SpatialReference object. You can define the spatial reference object using either of the following:
    • Factory codes, for example:

      sr = arcpy.SpatialReference(3857, 115700)
    • Names, for example:

      sr = arcpy.SpatialReference("WGS 1984 Web Mercator (auxiliary sphere)", "WGS 1984")
  • Use the well-known text (WKT) string of a spatial reference. One way to determine the WKT for a spatial reference is to export the spatial reference as a string, for example, arcpy.SpatialReference(3857, 115700).exportToString().
Spatial Reference

Derived Output

NameExplanationData Type
output_dataset

The indoor 3D dataset that is generated in the target geodatabase.

Feature Dataset

Code sample

CreateIndoor3DDataset example 1 (Python window)

The following Python window script demonstrates how to use the CreateIndoor3DDataset function in immediate mode.

import arcpy
arcpy.indoors.CreateIndoor3DDataset("C:/Indoors/myproject.gdb", 
                                  "Indoor3D", 
                                  "C:/workspace/myproject.gdb/featureclass")
CreateIndoor3DDataset example 2 (stand-alone script)

The following stand-alone script demonstrates how to use the CreateIndoor3DDataset function.

import arcpy

# Set tool parameters
target_gdb = "C:/Indoors/ExampleCampus.gdb"
indoor_dataset_name = "Indoor3D"
spatial_reference = arcpy.SpatialReference("WGS 1984 Web Mercator (auxiliary sphere)", "WGS 1984")

# Run the tool
arcpy.indoors.CreateIndoor3DDataset(target_gdb, indoor_dataset_name, spatial_reference)

Licensing information

  • Basic: Requires Indoors
  • Standard: Requires Indoors
  • Advanced: Requires Indoors

Related topics