How to pyRevit: Adding a python tool to pyRevit

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

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

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

    Mr. Irannejad, the content of this video helped me a lot. 👍

  • @mohammadahmadshahi9514
    @mohammadahmadshahi9514 5 лет назад +2

    Thank you so much! you really made a difference for me in large scale project handling in Revit.

  • @lucasjonne
    @lucasjonne 4 года назад +1

    I cannot find the pyRevitDevTools in my extensions. Were they taken out for the newer version? Or do I need to do something special?

    • @pyRevit
      @pyRevit  4 года назад

      It's not included with the public installer. You can clone the pyRevit repo to get it. It's mostly for developers that are working on the pyRevit itself

    • @lucasjonne
      @lucasjonne 4 года назад

      @@pyRevit I actually found out I don't need it, as I needed it for running Dynamo scripts through an added button. I saw that it works when Dynamo script files are placed in the .pushbutton folder. Great work!

  • @harandim
    @harandim 4 года назад +1

    Hi there! I have two folders on my PC \pyRevit and \pyRevit-Master. I tried to put the folder in both but it doesn't work. where could the problem be.

    • @pyRevit
      @pyRevit  4 года назад +1

      Remove both of them and install fresh :D Run a `pyrevit env` on command line and share the results in the github issue tracker if you still see problems with installer

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

    it is telling me , python script is not found, does have to do with which python version ? i downloaded python 3.9

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

    Thank you, Ehsan :) I found just the pyrevit-Master(not pyrevit) file and placed the folders exactly as you explained. However, when I try to reload it, I encounter an error indicating that my files cannot be found. Additionally, it only displays the extension name, and I am unable to see any files. Do you have any insights into what might be causing this issue?

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

    I am getting an error "Does not have a script file", even though it has the script file in the folder. What could be the issue?

  • @AngeloMastroberardino
    @AngeloMastroberardino 6 лет назад +2

    note: the plugin from that very script won't work straight away as it does from the Interactive Python Shell. To make it work add this to the top of the script.
    doc = __revit__.ActiveUIDocument.Document

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

    not sure if anyone can help -- trying this now in Revit 2022. Button doesn't show when I refresh pyRevit to update the extentions. The link in this comment section is broken. anyone know where I can go to fix this? Thanks!

  • @coenooijevaar4058
    @coenooijevaar4058 6 лет назад +1

    Hello Ehsan,
    It noticed that when im going to your Pyrevit blog the section Anatomy of a pyRevit script isnt there anymore. did you delete it or can i find it somewhere else?
    Your videos are really helping understanding the revit API and how to make tools, so thanks for that and hopefully the information of that page is still somewhere.

    • @pyRevit
      @pyRevit  6 лет назад +2

      I’ve moved all documentation to the pyRevit docs pages. The link is on the side bar on the blog.

  • @elhachimhamza4212
    @elhachimhamza4212 4 года назад +1

    Thank you so much!
    I programmed my own tools where i declared some values like K=6, B=6.9
    in the end i have a ERROR message
    Non ASCII caracter, no encoding declared

    • @pyRevit
      @pyRevit  4 года назад +1

      I can't tell what is wrong without seeing the script

    • @elhachimhamza4212
      @elhachimhamza4212 4 года назад

      Problem solved, thanks a lot!!!

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

      To others running into the same issue, make sure that you are not using a non-ASCII character, for example typing m³ for cubic meter. VS Code and other IDEs will warn you.

  • @ujosnax
    @ujosnax 7 лет назад

    Hello! Revit does not show the final window If I write instead of "Volume" "Объем" . How to fix it?

    • @zalewskyBIM
      @zalewskyBIM 4 года назад

      You need to add '# coding=utf-8' in your code.

  • @HuyNguyen-tx7sj
    @HuyNguyen-tx7sj 4 года назад +2

    how to adding python in revit 2019 of pyrevit version 4.7.6

    • @pyRevit
      @pyRevit  4 года назад +1

      You can go to pyRevit settings and activate Revit 2019 under "Supported Revit Versions" section

    • @HuyNguyen-tx7sj
      @HuyNguyen-tx7sj 4 года назад

      @@pyRevit thank you!

  • @bimhow9603
    @bimhow9603 6 лет назад

    Hello Ehsan,
    What is the unit of volume value? If it is not Metric, please let me know how I can convert it to metric.

    • @pyRevit
      @pyRevit  6 лет назад

      It's in Cubic Feet. You can use google to convert and find the conversion multiplier. www.google.com/search?q=cubic+feet+to+liters&ie=utf-8&oe=utf-8&client=firefox-b-1-ab

  • @alisafiaddine1
    @alisafiaddine1 5 лет назад

    Hello Ehsan,
    Great work thank you.
    can you please specify where exactly we should put our python script because it I not appearing in the Revit toolbar

    • @pyRevit
      @pyRevit  5 лет назад

      Take a look at the docs: pyrevit.readthedocs.io/en/latest/articles/creatingexts.html

  • @henriknystrm920
    @henriknystrm920 6 лет назад

    How did you learn programming? school, self thought? and how long have you done it?
    Im an Electrical Engineer using revit and i find programming and dynamo intresting, the problem is that i know nothing of this. Im starting and trying too learn. Do you have any recomendations on how to go forward too learn and use this in Revit? do i need years of experice too do things or? Btw Love your Videos keep it up! Proly not the last time you will hear from me :P

    • @pyRevit
      @pyRevit  6 лет назад +1

      Hey sorry for the late reply. Yeah I've always loved machines and started learning programming when I was very young. But my exposure to Revit programming is only about 4 years. It's definitely something you can slowly dive into and learn. Dynamo is great for visual programming and python more for prototyping your tools ideas and test them out easily in production environment. I'd suggest learning python very well and then slowing dive into Revit API (C#, IronPython) and learn by creating simple tools. Good luck.

    • @Ramachandranganeshram
      @Ramachandranganeshram 5 лет назад

      Hey Henrik, If you give 2 hours a day you cna learn python in 1-3 months even if you are self-thought. Try sololearn.com
      Then try examples.