What is Revit API? [RevitAPI + python]

Поделиться
HTML-код
  • Опубликовано: 28 ноя 2024

Комментарии • 30

  • @ErikFrits
    @ErikFrits  2 месяца назад

    🔥Check Learn Revit API Course Module 01 for Free:
    ruclips.net/video/jIyM1IXv4_A/видео.html

  • @Sikbal08
    @Sikbal08 2 года назад +3

    Best Quality content... On this topic

  • @mayukhnaskar4137
    @mayukhnaskar4137 2 года назад +1

    Eagerly waiting for more videos on this API content

    • @ErikFrits
      @ErikFrits  2 года назад

      Great! It's nice to see so many people interested in this topic!

  • @gasiedu
    @gasiedu 2 года назад +1

    I have found this at a perfect time, just starting on this path. I got a basic knowledge C#

    • @ErikFrits
      @ErikFrits  2 года назад +1

      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!

  • @marianabarros4398
    @marianabarros4398 2 года назад +1

    Awesome! Thanks for sharing

    • @ErikFrits
      @ErikFrits  2 года назад +1

      Hey, I am glad you like it!

  • @GiorgiBekurashvili
    @GiorgiBekurashvili Год назад +1

    It's pure gold

    • @ErikFrits
      @ErikFrits  Год назад

      Thanks, Check out newer videos I made for the course (1st module on RUclips ;) )
      Here is playlist:
      ruclips.net/video/O9Xt6iUynvw/видео.html

  • @jephiousdube1350
    @jephiousdube1350 2 года назад +1

    I really hope to learn much from you, its true some task get boring doing them over n over again

    • @ErikFrits
      @ErikFrits  2 года назад

      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!

  • @АртемЛогинов-с3р
    @АртемЛогинов-с3р Год назад +1

    have you written your plugin using only python? or have you used other languages like c#?

    • @ErikFrits
      @ErikFrits  Год назад

      I code only in python. I could switch to C#, but I like python more

  • @Mascon_ic
    @Mascon_ic 7 месяцев назад +1

    Hola, tienes cursos online, para poder comprarlo ?
    Muy buen contenido

    • @ErikFrits
      @ErikFrits  6 месяцев назад

      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 ;) )

    • @Mascon_ic
      @Mascon_ic 6 месяцев назад

      @@ErikFrits Perfecto.
      En ese curso trabajas con VIsual Studio Code. ?
      Igual estare al tanto del lanzamiento

  • @MdImran-kt3mt
    @MdImran-kt3mt 8 месяцев назад +1

    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

    • @ErikFrits
      @ErikFrits  7 месяцев назад

      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.

  • @erlekern
    @erlekern Год назад +1

    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?

    • @ErikFrits
      @ErikFrits  Год назад +1

      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 !

    • @erlekern
      @erlekern Год назад +1

      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!

    • @ErikFrits
      @ErikFrits  Год назад

      ​ @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.

    • @erlekern
      @erlekern Год назад +1

      @@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?

    • @ErikFrits
      @ErikFrits  Год назад

      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.

  • @alimehdi1143
    @alimehdi1143 Год назад +1

    Please do Python tutorial for Beginners

    • @ErikFrits
      @ErikFrits  Год назад

      I have 30 min video where I cover basics, but I will re-record it as a course on RUclips this Fall or Winter ;)

  • @professoradams338
    @professoradams338 2 года назад

    Can we create close space by giving distance between edges in dynamo ???IF yes can anyone help??? Need to automate it

    • @ErikFrits
      @ErikFrits  2 года назад

      I don't understand what you trying to achieve