Edit CGA in Notepad

1767
2
11-03-2011 06:37 AM
BradyHoak
Esri Contributor
I have a simple .cga file changing the height of some initial shapes I drew:

attr height = 20

Lot --> extrude(height)

It works and shows the height as 20. In notepad++, I change it to 100, save the file, and click generate but the height stays at 20. Refreshing the cga rule or clicking regenerate all models doesn't let cityengine see the changes and use them either. How do I edit a cga in a text editor and have CityEngine use the file as I improve it?
Tags (2)
0 Kudos
2 Replies
BradyHoak
Esri Contributor
I figured it out. In the TOC, either double click on the .cga file to reload it, or right click and choose refresh. Then click generate. but you need the buildings polys selected in the view first. This will pick up and apply any changes you make in a cga file in an external text editor.
0 Kudos
MatthiasBuehler1
Frequent Contributor II
glad you found this out !


but why do you want to edit the in an external editor and not the standard way in the CE, which also has correct syntax highlighting ?

:)
0 Kudos