AnsweredAssumed Answered

cga console - save output to txt

Question asked by mdekys_bagira on Oct 24, 2017
Latest reply on Oct 25, 2017 by CLau-esristaff



is it possible to save CGA console output into txt file during generation?


I'm trying to debug a problem that causes crash during generation because of something in cga


I tried this python script but it looks like redirecting sys.stdout is logging only output from python console, not CGA console :


from scripting import *
ce = CE()
import sys

if __name__ == '__main__':
   all_buildings = ce.getObjectsFrom(ce.selection(),ce.isShape)
   sys.stdout = open( "C:\Users\mara\Desktop\log.txt", 'w')
   print("python console output")