============= em-helloworld ============= .. contents:: Table of Contents :backlinks: top ------------ Introduction ------------ Sample script illustrates printing to the datamanager. This script also shows how you can re-direct all the standard python 'print' statements to message window. In python, when the interpreter reads a print statement it converts, :: print "Hello World!" To the following, :: sys.stdout("Hello World!" + "\n") If you wish to re-direct strings being sent to the sys.stdout to the message window, then all you have to do is set sys.stdout equal to the message window's stdout (standard out). :: sys.stdout = mssys.stdout Then, if you want to reset it back again, :: sys.stdout = sys.__stdout__ ------------ Dependencies ------------ :: Python: 2.2.[3-*] MineSight 3D: 3.50.* MineSight Grail: 3.50.* ---------------- Revision History ---------------- None. ----------------- License Agreement ----------------- The Original Code is em-helloworld.py. Copyright (C) 2014 Leica Geosystems. All Rights Reserved. MineSight(R) is a registered trademark of Leica Geosystems.