How to set up Revit API Autocomplete in pyCharm

preview_player
Показать описание
📙 Get Free E-Book: Beginner's Guide to Revit API:

🎁 The Ultimate pyRevit StarterKit for Beginners

--------------------------------------------------
Chapters:
00:00 Intro
00:45 Step 1 - Python
01:10 Step 2 - pyCharm
01:40 Step 3 - Virtual Environment
03:55 pyCharm Overview
04:40 Step 4 - Revit API Stubs
07:05 Test Revit API AutoComplete
07:55 Step 5 - Second Virtual Environment
09:10 Test multiple Environments
09:50 What's Next?

Tags: #LearnRevitAPI
Рекомендации по теме
Комментарии
Автор

After installing pyCharm, when I type 'import os' the 'import" is red instead of blue and I get an error "unused import statement 'import os'" did I miss a step?

BarettMacLeod
Автор

Can I add this autocompletion for the Robot API?

rgheno
Автор

Hi Erik, thanks for this free module! I had some issues setting up the dev environment but after hours of trial/error i got it to work. Here are some issues others might also encounter:
1. The python installer did NOT add the python path to the windows system environment variables so i had to add that manually.
2. I couldn't get the autocomplete stubs to work and was about to give up; the problem was that there where no "__init__.pyi" files in the Autodesk and Revit folders of your stubs package. When i added empty text files named "__init__.pyi" to these folders it finally worked.

Tommy_Teliros
Автор

I have added the path for the lib on multiple times and it adds them but then when i go back to the root file path it lost them so i am unable to access them. do you konw why this is?
is there another way i can add them ? thank you for your time

MrEjoeb
Автор

Ryrevit did not work with my as your in the video, I already added it but pycharm can not recognise it and didnot give me options like you

stepscourse
Автор

Hi Erik, i pasted the interpreter path like video.
After clicking ok, my path disappeared immediately.
even i cannot delete origin path.so i cannot type code about revit.
Is any problem about settings?
Thanks!

fangyu
Автор

Thanks for that, will the stubs work with python 3.x?

alejandroibarra
Автор

Hi Erik!
As I told you yesterday, I can't get the autocomple stubs.
The error that I got is
Enviroments\RevitAPI 23\Scripts\python.exe"
Traceback (most recent call last):
File "C:\Users\miacuaniello\Desktop\Mauro\PythonProject\Prova.py", line 1, in <module>
from Autodesk.Revit.DB import *
ImportError: No module named Autodesk.Revit.DB"

Thank you

Mauro-nt
visit shbcf.ru