I'm trying to port RevitPythonShell to AutoCAD, as a start I did comment out enough of the code of the RevitPythonShell project to make the console run in AutoCAD, and it works! Except that MdiActiveDocument is null (None in python), And I don't know why.
the solution is attached to the post. Just compile and load RevitPythonShell.dll. There are two command, the first is "IronPythonConsolePalette", and the second is "IronPythonConsoleWindow. It's obvious what the first does, and the second runs a modal window.