Thanks, I hope you find my tutorials easy to follow ;) Let me know if some videos are not clear enough, it might help me make better videos in the future!
Hi, Thanks, I appreciate that! Yes I have a LearnRevitAPI.com course platform. I used to make small week-long launches for people to join before. But soon the course will become live again and will stay open after that. (~2-3 weeks ;) )
I would recommend to check CS50 Introduction to python free course by harvard on edx-org. Once you have python basics, I have plenty of videos on Revit API on RUclips and I would recommend to get my E-Book that can help you a lot! See the link in the channel page. I also have a course but it's closed right now. Next launch will be this summer.
Nice video! I have a question: Could I paste the code of a script made in pyrevit into a Python script node in Dynamo, and it would work exactly the same? In my department we use Dynamo player for distributing scripts to colleagues you see. Maybe it would run a bit slower?
You can paste the same code in Dynamo but you will need to modify a few things. You will need to reference Revit API libraries yourself to import modules ```python import clr clr.AddReference('RevitAPI') clr.AddReference('RevitAPIUI') clr.AddReference('RevitServices') Also Dynamo handles Transactions differently, and you need to use another method to get app, doc, uidoc of your Revit Application. ```python # Imports import RevitServices from RevitServices.Persistence import DocumentManager from RevitServices.Transactions import TransactionManager # Variables doc = DocumentManager.Instance.CurrentDBDocument uidoc=DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument # Transaction TransactionManager.Instance.EnsureInTransaction(doc) #Changes here... TransactionManager.Instance.TransactionTaskDone() ``` Other things should work the same. ⌨Happy Coding !
Okay thank you! So then, if pyrevit and dynamo can effectively do the same (using Python script node in dynamo), why do you prefer pyrevit? Does it provide a better editor, or does it in fact have some functionality that is not available in dynamo? In dynamo one can pick elements in Revit as input for a script, can you the same in pyrevit? Thanks again!
@Erlend Ekern You can get user selection with python anywhere, it's not a problem. pyRevit does come with handy features, especially for beginners. You can easily get a form so user can select a view, or some element. Also I can reuse my code in pyRevit much easier. I create a library and then I can create different functions and methods that will be reused across all of my scripts, including GUI forms. And I find it much more sharable with others (EF-Tools). P.S. pyRevit can read dynamo scripts as well. So you can create a pyRevit extension and instead of .py files, place .dyn files. Then you will have toolbar with all your tools, and I find it much better than Dynamo Player. If you don't need to provide input in Dynamo Player.
@@ErikFrits That sounds awesome. I think ill have to check pyrevit out! The reusability of code sounds nice. But can you also import and use any external packages like numpy, pandas etc in your pyrevit programs? That would be great. But the package versions are maybe limited to compatibility with Python 2.7?
Yes, these packages are available, but you will need to use CPython 3 version in pyRevit. I haven't tried using them in pyRevit, so I would suggest reading in pyRevit Dev Docs how to do it.
🔥Check Learn Revit API Course Module 01 for Free:
ruclips.net/video/jIyM1IXv4_A/видео.html
Best Quality content... On this topic
Thank you!
Eagerly waiting for more videos on this API content
Great! It's nice to see so many people interested in this topic!
I have found this at a perfect time, just starting on this path. I got a basic knowledge C#
Hi, I am glad to help out ;)
My series will be focused on python and any prior experience with any language is a huge plus for sure!
Awesome! Thanks for sharing
Hey, I am glad you like it!
It's pure gold
Thanks, Check out newer videos I made for the course (1st module on RUclips ;) )
Here is playlist:
ruclips.net/video/O9Xt6iUynvw/видео.html
I really hope to learn much from you, its true some task get boring doing them over n over again
Thanks, I hope you find my tutorials easy to follow ;)
Let me know if some videos are not clear enough, it might help me make better videos in the future!
have you written your plugin using only python? or have you used other languages like c#?
I code only in python. I could switch to C#, but I like python more
Hola, tienes cursos online, para poder comprarlo ?
Muy buen contenido
Hi,
Thanks, I appreciate that!
Yes I have a LearnRevitAPI.com course platform.
I used to make small week-long launches for people to join before.
But soon the course will become live again and will stay open after that. (~2-3 weeks ;) )
@@ErikFrits Perfecto.
En ese curso trabajas con VIsual Studio Code. ?
Igual estare al tanto del lanzamiento
Brother I am learning bim on the other hand I have started python by Udemy can you please tell me the step wise software to become Revit API engineer
I would recommend to check CS50 Introduction to python free course by harvard on edx-org.
Once you have python basics, I have plenty of videos on Revit API on RUclips and I would recommend to get my E-Book that can help you a lot!
See the link in the channel page.
I also have a course but it's closed right now. Next launch will be this summer.
Nice video! I have a question: Could I paste the code of a script made in pyrevit into a Python script node in Dynamo, and it would work exactly the same? In my department we use Dynamo player for distributing scripts to colleagues you see. Maybe it would run a bit slower?
You can paste the same code in Dynamo but you will need to modify a few things.
You will need to reference Revit API libraries yourself to import modules
```python
import clr
clr.AddReference('RevitAPI')
clr.AddReference('RevitAPIUI')
clr.AddReference('RevitServices')
Also Dynamo handles Transactions differently, and you need to use another method to get app, doc, uidoc of your Revit Application.
```python
# Imports
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
# Variables
doc = DocumentManager.Instance.CurrentDBDocument
uidoc=DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument
# Transaction
TransactionManager.Instance.EnsureInTransaction(doc)
#Changes here...
TransactionManager.Instance.TransactionTaskDone()
```
Other things should work the same.
⌨Happy Coding !
Okay thank you! So then, if pyrevit and dynamo can effectively do the same (using Python script node in dynamo), why do you prefer pyrevit? Does it provide a better editor, or does it in fact have some functionality that is not available in dynamo? In dynamo one can pick elements in Revit as input for a script, can you the same in pyrevit? Thanks again!
@Erlend Ekern You can get user selection with python anywhere, it's not a problem. pyRevit does come with handy features, especially for beginners. You can easily get a form so user can select a view, or some element.
Also I can reuse my code in pyRevit much easier. I create a library and then I can create different functions and methods that will be reused across all of my scripts, including GUI forms. And I find it much more sharable with others (EF-Tools).
P.S. pyRevit can read dynamo scripts as well. So you can create a pyRevit extension and instead of .py files, place .dyn files. Then you will have toolbar with all your tools, and I find it much better than Dynamo Player. If you don't need to provide input in Dynamo Player.
@@ErikFrits That sounds awesome. I think ill have to check pyrevit out! The reusability of code sounds nice. But can you also import and use any external packages like numpy, pandas etc in your pyrevit programs? That would be great. But the package versions are maybe limited to compatibility with Python 2.7?
Yes, these packages are available, but you will need to use CPython 3 version in pyRevit. I haven't tried using them in pyRevit, so I would suggest reading in pyRevit Dev Docs how to do it.
Please do Python tutorial for Beginners
I have 30 min video where I cover basics, but I will re-record it as a course on RUclips this Fall or Winter ;)
Can we create close space by giving distance between edges in dynamo ???IF yes can anyone help??? Need to automate it
I don't understand what you trying to achieve