Author Topic: porting RevitPythonShell to AutoCAD  (Read 1545 times)

0 Members and 1 Guest are viewing this topic.

Soulaimane

  • Guest
porting RevitPythonShell to AutoCAD
« on: February 10, 2015, 06:12:07 PM »
 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.
« Last Edit: February 10, 2015, 06:17:32 PM by Soulaimane »

Soulaimane

  • Guest
Re: porting RevitPythonShell to AutoCAD
« Reply #1 on: February 16, 2015, 02:32:45 AM »
It seems, this has something to do with it.