The Esri Community
GeoNet Resource Hub
to create and rate content, and to follow, bookmark, and share content with other members.
How do you use string lists?
Discussion created by
on Oct 16, 2012
on Oct 17, 2012 by MBuehler-esristaff
Show 0 Likes
I can't find any practical examples?
This content has been marked as final.
Show 1 comment
(Required, will not be published)
Oct 17, 2012 7:19 AM
All string operations are a little special case.
If you check your workspace, you'll find a CityEngine project called ce.lib. This is a library project for CityEngine, containing specific content which I'm not gonna explain in detail here.
You can make this library project visible in CE as described in the attached screenshot.
Now, inside it's 'rules' folder, you'll find a CGA rule called '_ce_.cga' (with lots of errors)
- string utils
- string list utils
- file utils
- color utils
- helper rules
All those utilities also ship with a little
Just feed the code in a standard Rule:
Lot --> print( listIndex("rule;your;city;","city") ) // = 2
With those utils, you can set up really complex rules, but I don't have any good example ready which I could share. Let me know if this helps anyway.
This stuff : CE Big Boy League .. Welcome ! ;)
Show 0 Likes
Retrieving data ...
Calculate compass heading in degrees between two points
Geoprocessing tool leaking memory
Monitoring SQL Server/SDE Memory Usage
SQL Server 2008 R2 - Max server memory setting
Rebuild Indexes keeps running a server out of memory