Delete "Shape" (object) with CGA

427
1
07-25-2022 01:45 PM
PeterVieira
New Contributor II

Hello,

is there no way to delete an imported "shape" with CGA? Within the scene it's extremely simple to single click on a building footprint (object within a shape file imported into the scene) so it's selected and hit the [delete] key on my keyboard. City Engine Help says: "The NIL operation deletes the current shape from the shape tree." But how can I actually use it in a cga file to delete a shape that the rule file is applied to?

0 Kudos
1 Reply
CherylLau
Esri Regular Contributor

Sorry, there's no way to delete an imported shape (object) with cga.   In addition to being able to delete them manually (as you point out), you can also delete them in a python script with ce.delete().

 

The keyword NIL in cga is applied to a shape in the derivation shape tree, which is created when cga code is run.  This is a different meaning of "shape" than what you describe above.  The keyword NIL will delete the geometry of a shape in the derivation shape tree.

0 Kudos