Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing IronPython in VScode #26

Open
lbhardwa opened this issue Apr 13, 2021 · 3 comments
Open

Installing IronPython in VScode #26

lbhardwa opened this issue Apr 13, 2021 · 3 comments

Comments

@lbhardwa
Copy link

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

@kevinjyh
Copy link

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

@lbhardwa
Copy link
Author

lbhardwa commented Aug 23, 2021 via email

@s-github-2
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants