gtalarico/ironpython-stubs

Installing IronPython in VScode

lbhardwa opened this issue · 3 comments

Can anybody guide me how to install ironpython stub in vscode. I tried lot of times but its not happening.

You can refer to this Youtube video. Although it is in Korean, you will get the idea.

please add this to the docs - Before you can import clr you must install pythonnet (maybe other packages have clr as well but this one worked for me) . Next you have to make sure that path to file RevitAPI.dll is in your sys.path
#%pip install pythonnet
import clr
import sys
sys.path.append(r'D:\Program Files\Revit 2024')
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import Electrical