Do You Make These Common Revit API Mistakes?

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ม.ค. 2025

ความคิดเห็น • 18

  • @SuporteBIM
    @SuporteBIM 2 หลายเดือนก่อน +1

    Hey Erik! Lesson 8 “how to share” my extention is available in youtube?
    Thank you Erik,
    We love all your efforts 👏👏

    • @ErikFrits
      @ErikFrits  2 หลายเดือนก่อน

      Yes,
      Check the playlist on my channel
      Or go straight to learnrevitapi.com/free-lessons for better navigation

  • @brunoCarneiroDis
    @brunoCarneiroDis 3 หลายเดือนก่อน +1

    For me, the biggest challenge is definitely not being able to see what I am doing behind the code. I have a strong background in Dynamo, where I can see exactly what I am doing, especially when working with geometry. I know I need to change my mindset and improve my knowledge of object-oriented programming. Anyway, I’ve learned a lot from your videos! You’re the best-keep it up, and happy coding!

    • @ErikFrits
      @ErikFrits  3 หลายเดือนก่อน +1

      That's certainly a big win for Dynamo when you work with geometric scripts. That's probably the only reason I would go to Dynamo now, but I would still use python nodes like a maniac 😁
      Thanks, I hope you will learn even more.
      Happy Coding indeed!

  • @jmco1045
    @jmco1045 3 หลายเดือนก่อน +2

    Good stuff Erik
    I kind of stand against error handling with try except, as you don't handle the error but just pass through it. It makes the code harder to debug.
    A good one I did repeatedly in the past was: sitting up my extension to auto update on Revit startup from my git repo. Good in itself, but whenever a tool I made required restarting Revit, and I hadn't committed the changes beforehand, I would loose the code entirely. So always good to have an extension for dev (which does not update automatically) and one for prod!

    • @ErikFrits
      @ErikFrits  3 หลายเดือนก่อน

      Thanks, That's a solid point for separating Dev and Production extension. But I think majority people come to this conclusion naturally when they have 10 unfinished buttons that kind of work but only for devs 😅
      I know what you mean about Error handling, but when non dev-users see huge red wall of text they get scared clicking the buttons again. But certainly worth at least printing an error message with traceback module or the name of the error.

  • @tay.0
    @tay.0 3 หลายเดือนก่อน +1

    Mistake #8 is happy news for me, I am working on a script that uses feet to calculate distances, and didn't realize the internal coordinates in revitAPI uses only feet for the internal system. So I removed all the unnecessary functions from the script. Thank you Eric I owe you a testimony for this great effort.

    • @ErikFrits
      @ErikFrits  3 หลายเดือนก่อน +1

      Indeed. Glad you watched it in the right time.
      Debugging opposite units is not fun, trust me.
      It can drive you crazy, especially when everything works except for units... But now you know
      Happy Coding!

  • @REDO_79
    @REDO_79 3 หลายเดือนก่อน +1

    Hi Erik, first of all, thank you for your interesting videos on how to learn the Revit API.
    I’ve set up autocomplete on my personal PC, and it works great! However, I have a computer at work where I can't install Revit, but I would like to write codes during my free time to use them later in my PC... Is it possible to set up autocomplete for the Revit API without having Revit installed? If so, could you guide me on how to do that?
    Thanks.

    • @ErikFrits
      @ErikFrits  3 หลายเดือนก่อน +1

      Hi, Yes it's possible.
      You would follow the same process as I've described in the video on setting up the Dev Environment.
      Revit API Autocomplete will work from Revit API Stubs that you download during the setup and connect with your IDE (pyCharm or VS Code).
      But you won't be able to execute code because it can only be done with Dynamo, pyRevit, RevitPythonShell because it needs an instance of Revit Application to work.
      I hope it helps.
      Happy Coding!

  • @sujanmaharjan9182
    @sujanmaharjan9182 3 หลายเดือนก่อน +1

    Hey Erik, can you please do some videos interacting with MEP elements

    • @ErikFrits
      @ErikFrits  3 หลายเดือนก่อน +1

      can you suggest some examples? I'm from architecture discipline, so I'm not as familiar with MEP issues in Revit.
      More description is better

    • @sujanmaharjan9182
      @sujanmaharjan9182 3 หลายเดือนก่อน

      @@ErikFrits Umm say for example I want to create Flex Ducts connecting with Air Terminal with Tap fittings with the selected ducts. The user would select Air Terminals and Duct where it needs to be connected to. And the program creates connects to the nearest point to the duct with flex duct and tap fitting(spigot)

  • @ЮрийПолянский-и9ь
    @ЮрийПолянский-и9ь 3 หลายเดือนก่อน +1

    can you make videos about Revit UI with PyRevit?

    • @ErikFrits
      @ErikFrits  3 หลายเดือนก่อน +1

      If you mean WPF forms with pyRevit, then I'm already working on a full course for that.
      The first module will be posted on TH-cam fairly soon. So far 2/5 modules are recorded 👀

  • @REDO_79
    @REDO_79 3 หลายเดือนก่อน +1

    "Hi Erik, do you have any videos, documentation, or links on how to learn WPF usage for pyRevit?"

    • @ErikFrits
      @ErikFrits  3 หลายเดือนก่อน +1

      I'm currently working on WPF course for pyRevit users. (2/5 Modules are recorded)
      First module will be on TH-cam but the rest is for Learn Revit API course members.

    • @REDO_79
      @REDO_79 3 หลายเดือนก่อน

      @@ErikFrits Thank you, Erik. I am delighted with this news and look forward to when you upload Module 1 to your channel