...If I try to set a reference to the currently open map in ArcMap, it will work in ArcMap's python console, but it will not work in PyScripter:


I really hope that I'm just doing something wrong, otherwise I lose the great benefits I get from writing and debugging code in PyScripter.
Thanx.