The ActiveView tool is not available for macros or the console Python. Use Std ViewScreenShot instead.