text: Hello,
  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")
  ce.generateModels(all_buildings)
  Mark
  In your workspace folder, there is a file called CGA Console.txt which contains the latest console output. If you're lucky, this file might get written before the crash. As a side note, similarly, Python.txt contains the python console output.
  The console output for a single shape will be written after the shape is generated. This means that if you are generating 10 buildings, and it crashes after 3 buildings have been completely generated, then the console should have output from the 3 generated buildings.
  Note that you can print the name of the shape using initialShape.name.
  initialShape Shape Attribute
  If you are trying to locate a specific building that is causing the crash, then it might be easier to keep selecting different sets of buildings, generating, and testing if it crashes or not until you narrow down the selection to the problematic building. The console won't print the building's info if it crashes on that building. The console only contains info after the generation of a shape has completed.