Features From CityEngine Rules (3D Analyst Tools)
Summary
Generates 3D geometries from existing 2D and 3D input features using rules authored in ArcGIS CityEngine.
Usage
Input features can be points, polygons, or multipatches.
@StartRulein the CityEngine rule package file (.rpk) should specify the input feature type that is expected:@InPointannotation for points,@InPolygonfor polygons, or@InMeshfor multipatch features. If@StartRuleis not annotated with one of these, the feature type will be assumed to be polygon. An error will be raised if an unexpected geometry type is input.Input features can be procedurally symbolized feature layers. CityEngine rules typically define a number of properties (called
attrsin CityEngine) that control how the output 3D models are generated from input shapes. For example, a rule that generates a building shell might have anattrof type double forBuildingHeightand anattrof type integer forFloorCount. If the input feature class has an attribute field with the same name and data type as a CityEngine rule property, values from that attribute field are automatically used to generate the output models. This automatic matching of CityEngine rule properties to attribute fields is called default field mapping.If the input feature layer is symbolized with single symbol symbology whose symbol contains one procedural symbol layer that references the same rule package as the input rule package, the tool will apply the overrides configured in the procedural symbol layer when creating the output. In this way the procedural symbol layer can be used to configure custom field mapping where the mapped field names do not exactly match the rule package attribute names, or to override a rule package attribute using a single custom value. See attribute-driven symbology for more information.
The Rule Package parameter value is a CityEngine
.rpkfile. It is a compressed file containing a compiled CityEngine rule and associated assets used by that rule. The Export Leaf Shapes parameter is only available if the input rule package states that it supports this operation by containing the following CGA annotation:@StartRule @Out (granularity=separatedShapes).When leaf shapes are generated using the Export Leaf Shapes parameter, a standard set of feature classes are created in the same location as the primary output multipatch feature class and have the naming conventions as follows:
<outputFC_Points>,<outputFC_MPoints>, and<outputFC_Lines>. All output feature classes contain anOriginalOIDattribute field that references theObjectIDof the input feature from which the output was generated. TheOriginalOIDfield can be used to join the output feature class to the input feature class. If reports are generated using the Include Reports parameter, the output feature class will also get an attribute for each report.An
OriginalOIDfield is added to the output feature classes to contain the ObjectID of the input feature from which each output feature has been generated. If the input feature class already has a field namedOriginalOID, the new field name is appended numerically, for example,OriginalOID2.Detailed errors or warnings raised during conversion are written to either a log file named
ArcGISProLog<process ID and GUID>.xml(when the tool is run interactively in ArcGIS Pro and diagnostic logging is enabled) orpythonLog<process ID and GUID>.xml(when the tool is run using a stand-alone Python script and if the diagnostic logging is enabled) in which<process ID and GUID>is a process ID and a new GUID that is appended to the name of the log file with each run of the tool, for example,ArcGISProLog-12300~1A9C1C2A-A2CB-41AF-BEB9-1F8CDC4F6D29.xmlorpythonLog-2160~807AFBC8-CA35-4370-9F90-4EDB2F9238AE.xml. This file is located in<Install drive>:\Users\<user name>\Documents\ArcGIS\Diagnostics.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Features |
The input point, polygon, or multipatch features. Input features can be procedurally symbolized feature layers. Field mapping (attribute-driven symbol properties) will be honored. |
Feature Layer |
|
Rule Package |
The CityEngine rule package file ( |
File |
|
Output Features |
The output feature class containing multipatch features with CGA rules applied. An |
Feature Class |
|
Include Existing Fields (Optional) |
Specifies whether the output feature class will include the attribute fields of the input feature class. This parameter is not considered when the Export Leaf Shapes parameter is used.
|
Boolean |
|
Include Reports (Optional) |
Depending on how the rule package has been authored, it may contain logic that generates one or more reports as the models are created. These reports can contain a variety of information about the features. An example is a rule package that reports the number of windows generated for each building model. This parameter is ignored if the rule package does not contain logic to generate reports.
|
Boolean |
|
Export Leaf Shapes (Optional) |
Specifies whether each input feature will be convert to a single, merged multipatch feature or become a set of many features that can be points, line, or multipatches. CityEngine rule packages construct content by generating component pieces and merging them into a single 3D object. However, these components, or leaf shapes, can also be stored as separate features. This option can be especially important when running analytical operations using subelements of a 3D object, such as the windows of a building. For example, a rule may generate seamless building models from input polygon footprints, or alternatively, it may create separate features for each apartment face, including an outward-facing panel, a representative center point, and lines showing the borders. In this example, the apartment panels, center points, and outlines are all considered leaf shapes.
|
Boolean |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Output Point Features |
When leaf shapes are generated, an output point feature class is created in the same location as the primary output multipatch feature class. |
Feature Class |
|
Output Line Features |
When leaf shapes are generated, an output polyline feature class is created in the same location as the primary output multipatch feature class. |
Feature Class |
|
Output Multipoint Features |
When leaf shapes are generated, an output polygon feature class is created in the same location as the primary output multipatch feature class. |
Feature Class |
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes