Import 3D Files (3D Analyst)

Imports one or more 3D models into an output feature class.

Usage tips


Import3DFiles_3d (in_files, out_featureClass, root_per_feature, spatial_reference, y_is_up)
Parameter Explanation Datatype
Input Files (Required)

One or more input files. The supported formats include 3D Studio Max (*.3ds), Sketchup (*.skp), VRML and GeoVRML (*.wrl), and OpenFlight (*.flt).

Output Multipatch Feature Class (Required)

The output multipatch feature class to be created.

Feature Class
One Root Per Feature (Optional)

Indicates whether to produce one feature per file or one feature for each root node in a file. The default is ONE_FILE_ONE_FEATURE.

Spatial Reference (Optional)

The coordinate system of the input data. The default is taken from the first file in the list. For the majority of formats this is 'Unknown'. Only the GeoVRML format knows the coordinate system.

Spatial Reference
Y Is Up (Optional)

The vertical orientation of the input coordinate system. The default is Z_IS_UP.

Data types for geoprocessing tool parameters

Script Example

# Purpose: Import a 3D model to a multipatch feature class.

# Create the Geoprocessor object
import arcgisscripting
gp = arcgisscripting.create()

#Check out the 3D Analyst extension
gp.CheckOutExtension ("3D")

    # Set the workspace (to avoid having to type in the full path to the data every time)
    gp.workspace = "D:/Docs1/GP/GPOutput"

    # Select the 3D Analyst Toolbox
    gp.toolbox = "3D"

    # Process: import a 3D model and save out a feature class
    gp.import3dfiles_3d("B747.3ds", "Test.gdb\\B747")


    # If an error occurred while running the tool print the error messages.
    print gp.GetMessages()

See Also

  • An overview of the 3D Analyst Conversion toolset
  • ASCII 3D To Feature Class (3D Analyst)