Select to view content in your preferred language

How to use Text.cga in CityEngine 2014.0?

5662
13
08-26-2014 10:24 PM
AtsumiSOGAWA
Esri Contributor

In CityEngine 2014.0, there is text.cga in General folder in Esri.lib.

However, when I open it, there are some error in the rule file.

How can I fixt it and how to use the rule?

0 Kudos
13 Replies
DonOpgenorth
Esri Contributor

I've moved your post into the  CityEngine space.  You will get a much better answer here as the GeoNet Help is intended for community help and feedback. I have also added in a few additional tags. You can see more
on the community structure, and what topics are under each space from the following documents:

GeoNet Community Structure

ArcGIS Discussion Forums Migration Strategy

Thanks!

Don

0 Kudos
DavidWasserman
Frequent Contributor

When I have trouble with opening a Rule file in CityEngine, I switch to Notepad++ to open it and see if there is something in the rule that is inconsistent. However, if that does not work it might be best to start from scratch.

David Wasserman, AICP
0 Kudos
AtsumiSOGAWA
Esri Contributor

Hi David,

Thank you for the reply! Well, the rule file is contained in the rule folder by default. I think it's a sample rule. but, it seems there is no instruction for it. So I wondered how people use the rule file to their project. Can't you see any error when you open the file?

0 Kudos
DevinLavigne
Frequent Contributor

Not exactly sure what the issue is - if its a bad file, I'd try creating a new workspace - the ESRI.lib gets added by default to every one you create.

You should note that the rule file is referencing textures - images of each letter - and they are located in the assets->General->Text folder so if you are seeing the default UV image (uvtest.png) than this is your error.

0 Kudos
AtsumiSOGAWA
Esri Contributor

Hi Devin,

When I open the text.cga file, there are so many errors on it, but I can't find the problem.. I also don't know how to use the rule to my project. I just don't know what is the text.cga file for....Text_cga.png

0 Kudos
by Anonymous User
Not applicable

Hi,

Can you tell me the number of your build, as seen with red arrow in image below? Also can you post your version of the Text.cga file. Just so I can see if I get the same compiler errors that you are.

Thanks!

Capture2.JPG

0 Kudos
AtsumiSOGAWA
Esri Contributor

Hi Chris,

Here I attached the rules and assets folders. The build number is the same as yours; 2014.0 140522R. I hope this helps.

CityEngine20140.png

0 Kudos
by Anonymous User
Not applicable

Hmm. It works fine on my machine. It was a compiler error, meaning the code did not compile. You should get a fresh copy of ESRI.lib and try again. 

0 Kudos
AtsumiSOGAWA
Esri Contributor

Well, I checked ESRI.lib file in three different machines which installed CE application respectively and still had errors. All error messages say "No such function....". I don't know where I can get a fresh copy of ESRI.lib. I could not find it on Resource Center. Do I miss anything?textCGA.png

0 Kudos