Features From CityEngine Rules (3D Analyst)
Summary
Generates 3D geometries from existing 2D and 3D input features using rules authored in Esri 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
Parameter | Explanation | Data 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
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")