gtalarico / ironpython-stubs

Autocomplete stubs for common IronPython/.NET libraries
Other
248 stars 80 forks source link

Installing IronPython in VScode #26

Open lbhardwa opened 3 years ago

lbhardwa commented 3 years ago

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

kevinjyh commented 3 years ago

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

lbhardwa commented 3 years ago

Thanks Kevin. Let me try.

Thanks & Regards

Love Bhardwaj

On Monday, August 23, 2021, 12:26:09 AM GMT+5:30, Kevin ***@***.***> wrote:  

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

s-github-2 commented 8 months ago

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