ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Features From CityEngine Rules

Available with 3D Analyst license.

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Generates 3D geometries from existing 2D and 3D input features using rules authored in ArcGIS CityEngine.

Usage

  • The input Rule Package is a CityEngine rule package (.rpk). It is a compressed file containing a compiled CityEngine rule and associated assets used by that rule.

  • Detailed errors or warnings raised during conversion are written to a log file named PRT#.txt (where # is a numeral that increases incrementally with each run of the tool). The location of this file depends on your operating system:

    • On Windows XP, it is at <Install drive>:\Documents and Settings\<user name>\Application Data\ESRI\GeoProcessing.
    • On Windows Vista and Windows 7, it is at <Install drive>:\Users\<user name>\AppData\Local\ESRI\GeoProcessing.

Syntax

arcpy.ddd.FeaturesFromCityEngineRules(in_features, in_rule_package, out_feature_class)
ParameterExplanationData Type
in_features

Input polygon, or multipatch features.

Feature Layer
in_rule_package

The CityEngine rule package *.rpk file containing CGA rule information and assets.

File
out_feature_class

The output feature class containing multipatch features with CGA rules applied.

Feature Class

Code sample

FeaturesFromCityEngineRules example (Python window)

The following Python window script demonstrates how to use the FeaturesFromCityEngineRules tool in immediate mode:

import arcpy
from arcpy import env
arcpy.CheckOutExtension("3D")
env.workspace = "C:/data"
arcpy.FeaturesFromCityEngineRules_3d("in_polygons", 
                                     "rules.rpk", 
                                     "out_multipatches")

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: Requires 3D Analyst
  • Standard: Requires 3D Analyst
  • Advanced: Requires 3D Analyst

Related topics

  • An overview of the CityEngine toolset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal