BIM File To Geodatabase (Conversion)

Summary

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

Usage

  • Use this tool to combine one or more BIM file workspaces (Revit or IFC files) into a geodatabase dataset. The tool will append and merge the feature classes, their geometry, and their attributes when feature classes have the same name and geometric type.

  • The output dataset will contain all the feature classes included in the Input BIM File Workspace parameter value if the Include Floorplan Feature Classes parameter is checked.

  • If an existing dataset is specified for the Dataset parameter, new features classes with unique names will be added to that dataset. If a feature class of the same name exists in the output dataset, a number will be appended to the end of that feature class name to make it unique (for example, Walls_1). To ensure that new feature classes are created, use a unique name for the Dataset parameter value.

  • Use the Spatial Reference parameter to override the default spatial reference set by the input data to ensure the proper output spatial reference. BIM file workspaces with existing spatial references will be projected to this specified output spatial reference if they are different.

  • The output of this tool can be used as the input to the Make Building Layer tool to create a single building layer from the combined data.

Parameters

LabelExplanationData Type
Input BIM File Workspace

The BIM file or files that will be converted to geodatabase feature classes.

BIM File Workspace
Output Geodatabase

The geodatabase where the output feature dataset will be created. This must be an existing geodatabase.

Workspace
Dataset

The building dataset name.

String
Spatial Reference
(Optional)

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
Identifier
(Optional)

A unique building identifier that will be added to all output feature classes. The identifier allows you to add unique names to each building to be used at a later time.

String
Include Floorplan Feature Classes
(Optional)

Specifies whether the output dataset will include the floorplan feature classes.

  • Checked—The output dataset will include the floorplan feature classes.
  • Unchecked—The output dataset will exclude the floorplan feature classes.

Boolean

Derived Output

LabelExplanationData Type
Output Feature Dataset

The output geodatabase feature dataset containing the new feature classes.

Feature Dataset
Output Feature Class

The output feature classes containing building feature class information.

Feature Class

arcpy.conversion.BIMFileToGeodatabase(in_bim_file_workspace, out_gdb_path, out_dataset_name, {spatial_reference}, {identifier}, {include_floorplan})
NameExplanationData Type
in_bim_file_workspace
[in_bim_file_workspace,...]

The BIM file or files that will be converted to geodatabase feature classes.

BIM File Workspace
out_gdb_path

The geodatabase where the output feature dataset will be created. This must be an existing geodatabase.

Workspace
out_dataset_name

The building dataset name.

String
spatial_reference
(Optional)

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
identifier
(Optional)

A unique building identifier that will be added to all output feature classes. The identifier allows you to add unique names to each building to be used at a later time.

String
include_floorplan
(Optional)

Specifies whether the output dataset will include the floorplan feature classes.

  • INCLUDE_FLOORPLANThe output dataset will include the floorplan feature classes. This is the default.
  • EXCLUDE_FLOORPLANThe output dataset will exclude the floorplan feature classes.
Boolean

Derived Output

NameExplanationData Type
out_feature_dataset

The output geodatabase feature dataset containing the new feature classes.

Feature Dataset
out_featureclass_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: BIMFileToGeodatabase.py
# 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.management.CreateFileGDB("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"
include_floorplan = True

# Run BIMFileToGeodatabase 
arcpy.conversion.BIMFileToGeodatabase(["Building_A_Architectural.rvt", 
                                       "Building_A_Structural.rvt", 
                                       "Building_A_Electrical.rvt"], 
                                      out_gdb_path, out_dataset_name, 
                                      spatial_reference, identifier,include_floorplan)

Licensing information

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

Related topics