Layer 3D To Feature Class (3D Analyst)

Applies 3D properties associated with a feature layer and writes the result to a new multipatch feature class.

Learn more about how Layer 3D To Feature Class (3D Analyst) works


Usage tips

Syntax

Layer3DToFeatureClass_3d (in_feature_layer, out_feature_class, group_field)
Parameter Explanation Datatype
Input Feature Layer (Required)

The input feature layer with 3-D properties.

Feature Layer
Output feature Class (Required)

The output multipatch feature class.

Feature Class
Grouping Field (Optional)

A group field is used to combine the geometry of multiple input features into individual output records. The geometry of features with the same group field value will be unioned. The output attribute values will be set to one of the input records.

Field
Data types for geoprocessing tool parameters

Script Example

# Purpose: Create multipatch feature classes using a 3D layer file.

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

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

try:
    # 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: create a multipatch feature class using a 3D layer file
    gp.layer3dtofeatureclass_3d ("3DPoints_Trees.lyr", "Test.gdb/Trees")

 except:
    # 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
  • Import 3D Files (3D Analyst)
  • Map to KML (3D Analyst)
  • Layer to KML (3D Analyst)