Hi Gou !
Can you tell me precisely what OS you are using (amount of RAM / 32|64 bit / ..) ?
The CityEngine caches (keeps in memory) assets and textures, thus it may be if you are frequently exchanging assets that your memory decreases. What may also help you is to delete from time to time the existing models via RMB > Delete Models.
Did you see the recommended (and minimum) system requirements here ?
http://resources.arcgis.com/content/cityengine/system-requirements
Please let me know.
HI,MatthiasThx for replying! My OS is higher than the Software Requirements and Recommendations .I've been working a lot in CityEngine recently,So what you said I have tried,but NOT working! I did it by a Python Script which batch exporting my models,Here is the script!import os,sys
def list_file(rootpath):
i=0
for path in os.listdir(rootpath):
absolutepath=os.path.join(rootpath,path)
if os.path.isdir(absolutepath):
list_file(absolutepath)
else:
if os.path.splitext(path)[1][1:] =="shp":
ImportAndGenerate(rootpath+"\\"+path,i,path[0:3])
i=i+1
def ImportAndGenerate(pathstr,i,path):
ce.importFile(pathstr, settings)
object = ce.getObjectsFrom(ce.scene, ce.withName("'Shapefile Lot'"))
ce.setSelection(object)
ce.setStartRule(ce.selection, "Lot")
#object=ce.getObjectsFrom(ce.selection)
ce.setRuleFile(ce.selection, "rules\ForExport\GroundFLoorExport.cga")
#ce.generateModels(object)
#ce.saveFile("rt.cej")
#ce.generateModels(object)
Export(object,path+str(i))
def Export(object,Namestr):
exportPath = ce.toFSPath("models/")
exportSettings = A3DSExportModelSettings()
exportSettings.setGranularityFile(A3DSExportModelSettings.PER_INITIAL_SHAPE)
exportSettings.setGeneralLocation(exportPath)
exportSettings.setGeneralName(Namestr)
ce.export(object, exportSettings)
ce.delete(ce.getObjectsFrom(ce.scene))
if __name__ == '__main__':
ce.newFile("rt.cej")
ce.openFile("rt.cej")
settings=SHPImportSettings()
settings.setProjection(SHPImportSettings.DisableProjection)
list_file('E:\\cityOP\\TDMap\\data\\OUT')
Any problem with it!?:)