Very nice intro video. Concise and straight to the point. I have some experience in python and experience in Revit+Dynamo, but never had the time to sit down to explore both togehter neither Revit API. Thanks for putting this together
This is a great intro to Python as it applies to Revit. I especially like the comparisons to Revit for programming concepts like variables etc. This is also nicely produced with little tooltips throughout for a little expansion on some concepts. I also love the inclusion of error handling, very important to know! Can't wait for your Revit API and future videos!
I am glad you found so much value in it, Thanks! So far it was the most effort I put into a single video. if you don't mind asking: - Do you find it too fast-paced or is it good speed?
@@ErikFrits The effort shows in the production and quality, no small feat to try and condense this topic while being concise and informative. The pace fit my needs fine, since I have a rough basic understanding of programming/python already and didn't need much time to digest the content. I'm unsure if it'd be a bit too quick for complete beginners. But I think if beginners review the video a few times, while following along with your examples and investigating the tooltips you've given, I think it should be a pretty well rounded introduction.
Thank you for taking your time for writing such feedback! It really helps. I agree, this was my initial idea that beginners might want to rewatch it a few times if they don't understand after watching it first time. And it should be better to watch this fast-paced video twice than watching slow-paced video once.
Thank you so much Erik for this video. I’m a beginner too. Let me start from scratch and try to implement in Precast modeling process. Later I may bother you with lot’s of queries. Please keep doing such videos. Sharing your knowledge in such platforms is not a simple thing. I always appreciate your efforts. Thanks again. ❤️ from Dubai.
Amazing content Erik! I was always scared to explore this side of Revit because i thought coding is not my thing. But after you explained it with such a simplicity, it has changed my mind! Thank you for that! 😁 Also a small request, if you can share the steps/ helpful contents you referred to while learning the coding from scratch it'll be a great help! Thank you again! Keep making such amazing videos! 💙
Hi Alex, I am really glad I managed to change your mind about programming! I get this request a lot recently, I am planning to make a video about it, but I need to make RevitAPI videos I have promised first 😅 It's coming eventually!
@@ErikFrits Eagerly waiting for both of the videos! Also a small suggestion, when you're typing the scripts, the text size is quite small so it's difficult to read it from a laptop. If you can edit the video with a zoom or any other workaround, it'll be much helpful! Thank you!
Hi thanks for the feedback! it's really helpful to know what is not good in my videos! I try to zoom as much as possible, but since I work on 1440p monitor, there is limit until where I can zoom before it starts to lose quality. Usually I code in pyCharm and I can make my text as big as I want and luckily all next videos will be in pyCharm, so it should be better. RevitPythonShell made more sense for this video, since people don't need to setup dev environment to follow along. + Revit screen feels like home. haha :D
Erik first of all thank you very much for these great videos, they are very clear and full of knowledge. I have tried to sign up to e-mail list but it gives me an error.
Hi Ken, Unfortunately not yet. A lot of things got in a way, and I am still waiting for the day to continue editing and recording... I should have more free time soon to focus on it 😉
Sorry I missed the part about supporting, I started answering first part right away😅 I have pages on Ko-Fi and Patreon, there are links in the description
I think I have spent in total 1-2 hours in ArchiCAD just to look around at it, so I am not the right guy to answer that. Python in Revit is easy and popular thanks to people who developed RevitPythonShell and pyRevit. They made it super accessible to everyone to use python and it led to many new free tools. So I think ArchiCAD needs a person like that to make it easy to access python. Maybe it exists, but I have never heard of it.
Even better: I have a video about it, there are links in description 😁 czcams.com/video/wU2tOo2VTSQ/video.html and don't forget to setup RevitAPI autocomplete. It's the best for writing these long lines
If you install the latest version of RevitPythonShell, I believe it runs on IronPython 3.4 or higher version. You will see the exact version it uses on the top of the console, once you open it.
Hello again; first, when will you release the Revit python course? I cannot wait for that. Secondly, how can I call the value located in the project properties? For example, I want to make a comparison between beams in my project using python, and I want to select the shortest beam. How can I do that using the values of the beams in the properties list?
The course is taking more time than I expected and I am also busier than expected. But I still hope to deliver the course this summer. To compare your beams: First of all you would need to get all your beams with FilteredElementCollector. (I have a video how to use it on my channel) Then you would need to read a parameter value (There is a video explaining how to work with parameters as well). Then you will be able to compare your beams. If you want to compare beams between different projects you would need to get doc variable for each project, and then get beams from them. You can get all open documents using app.Documents Hope it helps, Happy Coding!
Glad it's appreciated! You can place script.dyn files instead of script.py and I believe it will run as a Dynamo Player, so if your Dynamo script works it should work well when you run it with pyRevit. I have not tried it myself Regarding RevitPythonShell. There is somewhere __init__ or __start__ file that loads up a bunch of stuff and also prepares variables such as doc, uidoc and so on... You can also modify it if you want to include your own functions to be there by default. Click on Configure button included with PythonShell and you will be able to find a filepath there. Syntax is similar to pyRevit.
@@ghassenmhmh7988 Thanks man! Glad my content is useful in your learning journey. I know how frustrating it can be to learn on your own when resources are limited! Happy Coding!
Hi Erik! Do you know if there is a code for Revit that converts a 3d model into specific templates to create plans for small projects? I'd like to try to code something that includes the information needed to print construction documents quickly and accurately but although I've searched I don't know if something like this has already been created.
I am not quite sure what do you mean by "converts a 3d model into specific templates to create plans for small projects". Could you explain that in more details?
Unfortunately, not in the near future. I have never used Civil 3D, but I get this question a lot, so I might give it a try eventually. For now, I want to focus on areas where I am good and can actually teach useful things.
@@ErikFrits ok thank you. In my opinion programming in python for Revit or civil3D it's a bit difficult not so much for python but because you need to know API and what they can do. For Revit, API functions are much more widespread, instead it is not so for civil3d
I agree, API can be overwhelming especially in the beginnning with all those long lines. But over time you start to see patterns how it works, and it becomes easier with every tool to find the right methods and properties. Now I can make some tools under an hour because I can copy 80-90% of the code from my previous tools.
Can you try installing the latest release (2.0.2). I think since then it was modified to suit all Revit version with a single installer. Try This Link: github.com/architecture-building-systems/revitpythonshell/releases/tag/2.0.2
Hi Erik, how can I connect the Revit python shell with my extension which I made in Pycharm? For example, if I code by using RevitPythonShell to call all walls area in my building and I found this function is very important so I decided to add this function inside my extinction tools. How can I do that?
RevitPythonShell and pyRevit are not connected. You will need to place your code in script.py file inside of your extension. Watch this video to understand pyRevit extensions better: czcams.com/video/K-A3AG0Z8H4/video.html
🔥Check Learn Revit API Course Module 01 for Free:
czcams.com/video/jIyM1IXv4_A/video.html
Great video Erik, so much ground covered in half an hour! Keep up the great work.
Thanks Gavin!
To be honest I got scared once I realized how much I compressed in half an hour after editing, but I think it turned out well.
@@ErikFrits dont worry I did a 1 hour window family tutorial once!
Very nice intro video. Concise and straight to the point.
I have some experience in python and experience in Revit+Dynamo, but never had the time to sit down to explore both togehter neither Revit API.
Thanks for putting this together
The time has come 💪😁
It's my pleasure
I just found you by exploring pyRevit's extensions and I'm very impressed - great content, great delivery, nicely edited videos
🙏 Thank you! Glad you liked it.
This is a great intro to Python as it applies to Revit. I especially like the comparisons to Revit for programming concepts like variables etc. This is also nicely produced with little tooltips throughout for a little expansion on some concepts. I also love the inclusion of error handling, very important to know!
Can't wait for your Revit API and future videos!
I am glad you found so much value in it, Thanks!
So far it was the most effort I put into a single video.
if you don't mind asking:
- Do you find it too fast-paced or is it good speed?
@@ErikFrits The effort shows in the production and quality, no small feat to try and condense this topic while being concise and informative.
The pace fit my needs fine, since I have a rough basic understanding of programming/python already and didn't need much time to digest the content. I'm unsure if it'd be a bit too quick for complete beginners. But I think if beginners review the video a few times, while following along with your examples and investigating the tooltips you've given, I think it should be a pretty well rounded introduction.
Thank you for taking your time for writing such feedback! It really helps.
I agree, this was my initial idea that beginners might want to rewatch it a few times if they don't understand after watching it first time.
And it should be better to watch this fast-paced video twice than watching slow-paced video once.
Thank you so much Erik for this video. I’m a beginner too. Let me start from scratch and try to implement in Precast modeling process. Later I may bother you with lot’s of queries.
Please keep doing such videos. Sharing your knowledge in such platforms is not a simple thing. I always appreciate your efforts.
Thanks again. ❤️ from Dubai.
🙏 Thank you Prasad! It's nice to hear how far away people still find and enjoy my videos!
⌨Happy Coding!
Amazing content Erik! I was always scared to explore this side of Revit because i thought coding is not my thing. But after you explained it with such a simplicity, it has changed my mind! Thank you for that! 😁
Also a small request, if you can share the steps/ helpful contents you referred to while learning the coding from scratch it'll be a great help! Thank you again! Keep making such amazing videos! 💙
Hi Alex,
I am really glad I managed to change your mind about programming!
I get this request a lot recently, I am planning to make a video about it, but I need to make RevitAPI videos I have promised first 😅
It's coming eventually!
@@ErikFrits Eagerly waiting for both of the videos!
Also a small suggestion, when you're typing the scripts, the text size is quite small so it's difficult to read it from a laptop. If you can edit the video with a zoom or any other workaround, it'll be much helpful!
Thank you!
Hi thanks for the feedback! it's really helpful to know what is not good in my videos!
I try to zoom as much as possible, but since I work on 1440p monitor, there is limit until where I can zoom before it starts to lose quality.
Usually I code in pyCharm and I can make my text as big as I want and luckily all next videos will be in pyCharm, so it should be better.
RevitPythonShell made more sense for this video, since people don't need to setup dev environment to follow along. + Revit screen feels like home. haha :D
Very interesting, thanks Erik and I can't wait the course release
Thanks !
I will be announcing Late-Bird Launch soon 😉
Erik first of all thank you very much for these great videos, they are very clear and full of knowledge.
I have tried to sign up to e-mail list but it gives me an error.
Thanks, I am glad that you found so much value in them!
That's good to know! Explains why the counter has stopped since I updated it... 😅
Muy útil su video, muy práctico. Gracias por compartir su conocimiento. Éxitos
Thanks Ariel, appreciate kind words!
Happy Coding!
Hi Erik!, Thank You very much for this amazing content,
Greetings from Mexico! 😃
Hi Gilbert,
Glad you liked it!
Have you made the full revit api plus python course yet? How do I support you? Thanks!
Hi Ken,
Unfortunately not yet. A lot of things got in a way, and I am still waiting for the day to continue editing and recording...
I should have more free time soon to focus on it 😉
@@ErikFrits 👍🏼👍🏼👍🏼
Sorry I missed the part about supporting, I started answering first part right away😅
I have pages on Ko-Fi and Patreon, there are links in the description
@@ErikFrits I sent you an email. Didn't know if you got it. Thanks my friend!
@@willlywillly Just found it in the Spam folder. Thanks for letting me know, I will read it
Looks like a really informative video , are you able to compare the effort it takes to recreate the same task but in ArchiCAD.?
I think I have spent in total 1-2 hours in ArchiCAD just to look around at it, so I am not the right guy to answer that.
Python in Revit is easy and popular thanks to people who developed RevitPythonShell and pyRevit. They made it super accessible to everyone to use python and it led to many new free tools.
So I think ArchiCAD needs a person like that to make it easy to access python.
Maybe it exists, but I have never heard of it.
Wow! Seriously I have no idea about it before until now. Interested in learning. Can you share me the installation links pls.
Kudoos.
Even better:
I have a video about it, there are links in description 😁
czcams.com/video/wU2tOo2VTSQ/video.html
and don't forget to setup RevitAPI autocomplete. It's the best for writing these long lines
Great Video, thanks a lot. I just have one question about RevitPythonShell, can we update the IronPython 2.7.7 to 3.7? Thanks in advance.
If you install the latest version of RevitPythonShell, I believe it runs on IronPython 3.4 or higher version.
You will see the exact version it uses on the top of the console, once you open it.
which link do you download RevitPythonShell for Revit 2023?
@@phatnguyenhuu385 Use the latest release available in GitHub. I am sure it will work for all the latest versions ;)
Hello again; first, when will you release the Revit python course? I cannot wait for that. Secondly, how can I call the value located in the project properties? For example, I want to make a comparison between beams in my project using python, and I want to select the shortest beam. How can I do that using the values of the beams in the properties list?
The course is taking more time than I expected and I am also busier than expected. But I still hope to deliver the course this summer.
To compare your beams:
First of all you would need to get all your beams with FilteredElementCollector. (I have a video how to use it on my channel)
Then you would need to read a parameter value (There is a video explaining how to work with parameters as well).
Then you will be able to compare your beams. If you want to compare beams between different projects you would need to get doc variable for each project, and then get beams from them.
You can get all open documents using app.Documents
Hope it helps,
Happy Coding!
@@ErikFrits Thanks you so much. You are the best.
It would be very appreciated if you make the files for codes that you have typed.
Noted.
I need to have a look if I haven't lost them yet.
first , i want to thank u for what tou are giving to the community
Glad it's appreciated!
You can place script.dyn files instead of script.py and I believe it will run as a Dynamo Player, so if your Dynamo script works it should work well when you run it with pyRevit. I have not tried it myself
Regarding RevitPythonShell. There is somewhere __init__ or __start__ file that loads up a bunch of stuff and also prepares variables such as doc, uidoc and so on... You can also modify it if you want to include your own functions to be there by default. Click on Configure button included with PythonShell and you will be able to find a filepath there.
Syntax is similar to pyRevit.
@@ErikFrits thanks Erik , i will try it
there is really people whant to learn here , we need people like you thanks so much ,
best of luck dude ❤
@@ghassenmhmh7988 Thanks man!
Glad my content is useful in your learning journey. I know how frustrating it can be to learn on your own when resources are limited!
Happy Coding!
Hi Erik! Do you know if there is a code for Revit that converts a 3d model into specific templates to create plans for small projects? I'd like to try to code something that includes the information needed to print construction documents quickly and accurately but although I've searched I don't know if something like this has already been created.
I am not quite sure what do you mean by "converts a 3d model into specific templates to create plans for small projects".
Could you explain that in more details?
Hi Erik, do you think about making a video about pithon + civil3D? Thank you
Unfortunately, not in the near future.
I have never used Civil 3D, but I get this question a lot, so I might give it a try eventually.
For now, I want to focus on areas where I am good and can actually teach useful things.
@@ErikFrits ok thank you. In my opinion programming in python for Revit or civil3D it's a bit difficult not so much for python but because you need to know API and what they can do. For Revit, API functions are much more widespread, instead it is not so for civil3d
I agree, API can be overwhelming especially in the beginnning with all those long lines.
But over time you start to see patterns how it works, and it becomes easier with every tool to find the right methods and properties.
Now I can make some tools under an hour because I can copy 80-90% of the code from my previous tools.
I know it is a very basic question. But I couldn't install it porperly. What I've done wrongly?
Could you give me more context where you got stuck?
Do you mean Revit Python Shell?
@ErikFrits Thank you for replying. I've installed the file named "Installer for Autodesk Revit 2022" and I couldn't get the python symbol on the add.
Can you try installing the latest release (2.0.2).
I think since then it was modified to suit all Revit version with a single installer.
Try This Link:
github.com/architecture-building-systems/revitpythonshell/releases/tag/2.0.2
@ErikFrits Thank you so much Erik. I appreciate that.
Hi Erik, how can I connect the Revit python shell with my extension which I made in Pycharm? For example, if I code by using RevitPythonShell to call all walls area in my building and I found this function is very important so I decided to add this function inside my extinction tools. How can I do that?
RevitPythonShell and pyRevit are not connected.
You will need to place your code in script.py file inside of your extension.
Watch this video to understand pyRevit extensions better: czcams.com/video/K-A3AG0Z8H4/video.html
@@ErikFrits thanks😍
Email Sign-Up: www.LearnRevitAPI.com/