BIM File To Geodatabase (Conversion)


Imports the contents of one or more BIM file workspaces into a geodatabase feature dataset.


  • Use this tool to combine one or more BIM models (Revit files) into a new dataset, which will maintain your building feature class names. This dataset will contain all the valid feature classes that are the same as the building discipline dataset.

  • Output feature classes will only be created when there are geometric objects in the building discipline dataset's feature classes. If there is no geometry. those feature classes will not be created. The only exception is that the Exterior shell feature class will always be created, even when no features exist for it.

  • If the Dataset parameter name already exists, new features will be appended to the existing feature class. To create new feature classes, use a unique Dataset name.

    If a name already exists in the output dataset, a number will be appended to the end to make the feature class name unique (for example, building_1).

  • When a projection file exists for the input BIM file, it will be used to set the spatial reference of the output.. If multiple BIM files are used as input, the spatial reference of the first BIM file with valid projection information will be used. To override the default behavior, modify the Spatial Reference parameter.

  • If a universal projection file (esri_cad.prj) exists in the directory, its projection information will be used if a coordinate system is not defined for the first BIM file.


arcpy.conversion.BIMFileToGeodatabase(in_bim_file_workspace, out_gdb_path, out_dataset_name, {spatial_reference}, {identifier})
ParameterExplanationData Type

The BIM file or files to convert to geodatabase feature classes.

BIM File Workspace

The geodatabase where the output feature dataset will be created. This geodatabase must already exist.


The building dataset name.


The spatial reference of the output feature dataset.

To control other aspects of the spatial reference, such as the x,y-, z-, and m- domains, resolutions, and tolerances, set the appropriate geoprocessing environments.

Spatial Reference

Adds a unique building identifier to all output feature classes, which allows you to add unique names for each building to be used at a later time.


Derived Output

NameExplanationData Type

The output geodatabase feature dataset containing the new feature classes.

Feature Dataset

The output feature classes containing building feature class information.

Feature Class

Code sample

BIMFileToGeodatabase example (stand-alone script)

The following Python script demonstrates how to use the BIMFileToGeodatabase function in a stand-alone script.

# Name:
# Description: Create a feature dataset

# Import system modules
import arcpy

# Set workspace
arcpy.env.workspace = "C:/data/facilites"

# Create a file geodatabase for the feature dataset
arcpy.CreateFileGDB_management("C:/data/facilities", "University.gdb")

# Set local variables
out_gdb_path = "C:/data/facilites/University.gdb" 
out_dataset_name = "Building_A"
spatial_reference = "NAD_1983_StatePlane_California_VI_FIPS_0406_FEET"
identifier = "BLD_A"

# Execute BIMFileToGeodatabase 
                                      out_gdb_path, out_dataset_name, 
                                      spatial_reference, identifier)

Licensing information

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

Related topics