This is a gamechanger! I tend to find that users are scared of dynamo/dynamo player meaning they lose access to some really useful tools. Having everything integrated into a push button will help break down those barriers. Thanks for walking us through it Gavin! Keep up the amazing work!
You're welcome mate! The main challenge with dynamo in pyrevit is UI and dependency on data shapes but if you can work with that then it's definitely a capable way of deploying tools.
@@joshuastellini3074 sure is. Python can copy, delete and rename folders from user appdata folders using the 'os' and 'shutil' libraries, both of which I believe pyrevit has (definitely has os, fairly sure it has shutil).
If we are thinking of doing something with Dynamo, Python or pyRevit, ABG has already made a tutorial available for free. Thank you so much for sharing your knowledge and studies!
@@AussieBIMGuru I have a question, My team dynamo package installed individualy in each computer, sometimes my script will not work into their computer then I have to replace the missing package or red color nodes just to run in their computer. My question is that if I use this pyrevit adding dynamo scripts does it mean that it will not have any issues running the dynamo that I created?
@@eliabim unfortunately youll still have the same issue with custom package management as pyrevit just opens dynamo in the background to run the script.
This has been super helpfully but how can I get Revit shortcuts to recognize the custom toolbar. I would like to be able to run the scripts from a short cut key but when i make the custom tools they don't show up in the short cuts.
Hey Gavin, you're the best. :) I see you use floor finishes as separate floors. What are the advantages of this workflow? Do you make other floor layers as separate floors also, or what is the best practice?
Usually I model the slab and finish separately for a variety of reasons including: 1. The extents are different 2. Finishes do not go under walls normally 3. Structure models their own floors 4. If concrete/finish go together it can be hard to differentiate screed bed vs solid slab 5. Can hide finishes for concrete profiles Amongst a few other reasons.
Unfortunately life has me busy right now so I've had to shelf the channel/series until time allows. Suggest checking out Erik Frits who is about to kick off a python and pyrevit series and has a great toolkit called EF tools for pyrevit.
Not possible as far as I know, as the Dynamo app handles that part of the program. You can get a script to run the command tro launch dynamo player as an app, but not get the script you run into the button in pyrevit specifrically.
Hello there I've watched every video of yours in family creation. Great work🤗 Could you please reply how to make a tag leader to come out at the last line of the text instead of the middle? By the way I need this information because I started using shared parameters and I'm slowly transitioning from text notes to shared parameters. My company(BlueStar India) is the biggest in HVAC in india, but we use Revit only for it's 3D modeling aspect. Creating shared parameters about AC machines and others saved me alot of time in scheduling without mistakes. Anyway any help is appreciated because a leader line coming out at the middle is forcing me to give space between tages, It's not possible in most sheets.
Great to hear you are starting to explore parameters over text notes! I believe they added some extra tag leader management options to Revit 2022 and beyond, but the only way I know to force the leader into a set position is using an invisible vertical line that is taller than the label in the tag, then bottom/left justify the label to the centre of the tag or thereabouts. The invisble line should trick Revit into thinking the leader belongs at the bottom of the text note which is technically the centre of the invisible line. This only works if the leader is set to the side of the tag unfortunately, not above or below the tag.
Hey Gavin! Have you ever had an issue where the dynamo script works perfectly, but the PyRevit button does not work? I thought it could be related to the Automatic / Manual thing in the script, but mine are all set as Automatic. They all run via Dynamo Player, and if you already opened Dynamo in the session, the button works! They are very simple scripts, do you have any suggestion or solution?
Great Video again! I was waiting for this exact explanation, Thanks a lot. I do have a question regarding the Dynamo in Pyrevit functionality. I have some scripts that run with expected errors. when you run the dynamo script through this medium, you lose all the viewing of error capabilities of Dynamo right?
You're welcome! Yes unfortunately you're running Dynamo blind in this mode. It's a bit like Dynamo Player but without the 'ran with errors' message. Personally I don't run scripts via pyrevit due to this and other limitations, but it took a while to become confident writing tools purely in python.
This is so great! I'm trying to integrate my dynamo into my tab too, but some have an input such as Excel file. Is it possible if I need to open and edit the .xlsx before run the script?
I believe that you can only do that by programming a waiting step using Python into your core script using something like a while loop. Maybe ask if the forums have an idea as it would need to be done in dynamo versus pyrevit.
Hey Gavin, thanks for the informative video. I have a problem, when loading my panel in pyrevit with buttons on a dynamo script, the scripts stop working (python scribt nodes gives an error message). The script does not run in any way. Once I unload my panel everything works fine. I use pyRevit v4.8.12, Revit 2023.1, Dynamo 2.16 + CPython 3.9.12. If you had a similar problem, could you share how to solve it.
@@auron584 I generally use IronPython but did a test and my CPython nodes seemed to work in testing at least. Maybe lodge a github issue to get detailed assistance.
Hi Gavin, is there any chance you can teach us how to tag all in elevation view? they are all 3D geographics. i used shape/geometry in dynamo, none would work without crashing , because it actually is going through the whole depth of the building
Unfortunately Revit doesn't know how to detect if something is covered by an object in the view range. Maybe try collecting all objects within a certain distance from your envelope walls a check if theyre visible in active view as well.
Yes you can make winforms using pyrevit I think. It's quite timely but there are some apps in pyrevit like the batch printer that use custom UI's. Haven't seen dockable before though... may need an addin for that.
Chances are there is a custom package competing with it. Try removing all your packages and progressively reinstalling them. Sometimes the generative design package/tool can cause this also - I typically uninstall this anyway.
Yes. Relay, Nonica and Dyno have done this. As you'll see in future videos pyRevit's major drawcard is in its python based tool creation offerings though.
Hi I think you subscribed to my channel because I have seen your name. If not here's a link to some basic MEP stuff conduit cable trays etc. th-cam.com/video/Uwe_SenaWO0/w-d-xo.html
@@LinhNguyen-zp4cb in that case it is to order the buttons in the toolbar yes. Some are optional but without then pyrevit will make assumptions about these sorts of things.
@@LinhNguyen-zp4cb you can find some files like this in the files for a future video here: github.com/aussieBIMguru/Misc/blob/master/ABG_230320_pyRevit%20prefiltering.zip
Hello, how can I contact you? I need your help to explain some things in Revit because I have a final exam and I need to understand something important about DYNAMO.
Hi, Gavin First of all, thank you for your time and great videos, I really appreciated both Got a question, do you know what this error means? ERROR [pyrevit.loader.sessionmgr] Can not find command with unique name: pyrevitcore-pyrevit-pyrevit-tools-reload Thank you again, for your attention!
@@AussieBIMGuru thanks, Gavin. That's exactly what I did, then I modify the structure in the .extension folder and files, and I finally nailed it. Thank you so much for all your support! Greetings from Mexico 🇲🇽
Better content and tutorials then any video autodesk gives us. Much appreciated!
Not a high bar to pass but thanks!
Thanks Gavin, more and more people are starting to recognize your amazing tutorials and really appreciate your time!
Thanks for the kind words!
Thank you for your video Gavin, very explicit and clear.
Glad it was helpful!
This is a gamechanger! I tend to find that users are scared of dynamo/dynamo player meaning they lose access to some really useful tools. Having everything integrated into a push button will help break down those barriers.
Thanks for walking us through it Gavin! Keep up the amazing work!
You're welcome mate! The main challenge with dynamo in pyrevit is UI and dependency on data shapes but if you can work with that then it's definitely a capable way of deploying tools.
I wonder if it’s possible to have a button in the toolbar to deploy custom packages 🤔
@@joshuastellini3074 sure is. Python can copy, delete and rename folders from user appdata folders using the 'os' and 'shutil' libraries, both of which I believe pyrevit has (definitely has os, fairly sure it has shutil).
Hey Gavin I have learned so much from you! I wanted to say you are an amazing person, God Bless you, sending the best vibes from Colombia.
Thanks for the kind words, and awesome to know my work has reached Colombia! 🇨🇴
Thank you a lot for the next video on PyRevit, I really enjoy it! It is really motivating tool to dig in Python itself too .
Glad it has been helpful!
If we are thinking of doing something with Dynamo, Python or pyRevit, ABG has already made a tutorial available for free. Thank you so much for sharing your knowledge and studies!
Glad to help as always!
G'day Mate! Thanks for the video
You're welcome Robert!
Great content! I will try to replicate this for a better learning.
Go for it!
I am waiting on this! Thanks Gavin
You're welcome! Keep up the great work in Dynamo/Revit on your side also.
@@AussieBIMGuru I have a question, My team dynamo package installed individualy in each computer, sometimes my script will not work into their computer then I have to replace the missing package or red color nodes just to run in their computer. My question is that if I use this pyrevit adding dynamo scripts does it mean that it will not have any issues running the dynamo that I created?
@@eliabim unfortunately youll still have the same issue with custom package management as pyrevit just opens dynamo in the background to run the script.
This has been super helpfully but how can I get Revit shortcuts to recognize the custom toolbar. I would like to be able to run the scripts from a short cut key but when i make the custom tools they don't show up in the short cuts.
Change the tab at the top of the keyboard shortcut menu to your pyrevit toolbar and it should show its commands.
Hey Gavin, you're the best. :) I see you use floor finishes as separate floors. What are the advantages of this workflow? Do you make other floor layers as separate floors also, or what is the best practice?
Usually I model the slab and finish separately for a variety of reasons including:
1. The extents are different
2. Finishes do not go under walls normally
3. Structure models their own floors
4. If concrete/finish go together it can be hard to differentiate screed bed vs solid slab
5. Can hide finishes for concrete profiles
Amongst a few other reasons.
It's good to quickly see required door undercuts too and create details for thresholds
very nice.
Thanks!
You are realy great man 👍 thank you
You're welcome!
Keep up the content on your side too mate 😀
@@AussieBIMGuru I will my dear… thanks ❤️
Hi Gavin, waiting patiently for the next video ! Any clues as to what it may be ? :p
Unfortunately life has me busy right now so I've had to shelf the channel/series until time allows. Suggest checking out Erik Frits who is about to kick off a python and pyrevit series and has a great toolkit called EF tools for pyrevit.
Super Thanks
You're welcome
Please, what about runing dynamo player from the pushbutton script?🙏
Not possible as far as I know, as the Dynamo app handles that part of the program.
You can get a script to run the command tro launch dynamo player as an app, but not get the script you run into the button in pyrevit specifrically.
Hello there
I've watched every video of yours in family creation. Great work🤗
Could you please reply how to make a tag leader to come out at the last line of the text instead of the middle?
By the way I need this information because I started using shared parameters and I'm slowly transitioning from text notes to shared parameters. My company(BlueStar India) is the biggest in HVAC in india, but we use Revit only for it's 3D modeling aspect. Creating shared parameters about AC machines and others saved me alot of time in scheduling without mistakes.
Anyway any help is appreciated because a leader line coming out at the middle is forcing me to give space between tages, It's not possible in most sheets.
Great to hear you are starting to explore parameters over text notes! I believe they added some extra tag leader management options to Revit 2022 and beyond, but the only way I know to force the leader into a set position is using an invisible vertical line that is taller than the label in the tag, then bottom/left justify the label to the centre of the tag or thereabouts. The invisble line should trick Revit into thinking the leader belongs at the bottom of the text note which is technically the centre of the invisible line. This only works if the leader is set to the side of the tag unfortunately, not above or below the tag.
Hey Gavin! Have you ever had an issue where the dynamo script works perfectly, but the PyRevit button does not work? I thought it could be related to the Automatic / Manual thing in the script, but mine are all set as Automatic. They all run via Dynamo Player, and if you already opened Dynamo in the session, the button works! They are very simple scripts, do you have any suggestion or solution?
Generally I haven't had this sort of issue, might be worth asking on pyrevit forums so they can troubleshoot in depth.
is there a way to run multiple dynamo script sequentially from pyrevit?
Not as far as I know but check our dynamo multiplayer app by birdtools.
Can anyone tell me where I can install the pyRoovit ribbon? I can't find it in the extensions manager. :(
Its on my github and has been rebranded to guRoo.
Great Video again! I was waiting for this exact explanation, Thanks a lot. I do have a question regarding the Dynamo in Pyrevit functionality. I have some scripts that run with expected errors. when you run the dynamo script through this medium, you lose all the viewing of error capabilities of Dynamo right?
You're welcome! Yes unfortunately you're running Dynamo blind in this mode. It's a bit like Dynamo Player but without the 'ran with errors' message. Personally I don't run scripts via pyrevit due to this and other limitations, but it took a while to become confident writing tools purely in python.
@@AussieBIMGuru Thanks for the quick answer! can you make everything that is possible in dynamo also happen in python?
@@basjanssen9262 both use the revit api and can use c#/python so yes.
You can also import Task Dialog inside Python Script in Dynamo to handle exceptions.
Great video! Will there be any follow up on the PyRevit series?
Probably not anytime soon as I have run out of time for videos these days unfortunately. Check out erik frits channel as he covers pyrevit in depth.
@@AussieBIMGuru thank you for the recomendation, learned a lot from your videos so I hope you keep funding time to make them 😄
This is so great!
I'm trying to integrate my dynamo into my tab too, but some have an input such as Excel file.
Is it possible if I need to open and edit the .xlsx before run the script?
I believe that you can only do that by programming a waiting step using Python into your core script using something like a while loop. Maybe ask if the forums have an idea as it would need to be done in dynamo versus pyrevit.
Hey Gavin, thanks for the informative video. I have a problem, when loading my panel in pyrevit with buttons on a dynamo script, the scripts stop working (python scribt nodes
gives an error message). The script does not run in any way. Once I unload my panel everything works fine. I use pyRevit v4.8.12, Revit 2023.1, Dynamo 2.16 + CPython 3.9.12. If you had a similar problem, could you share how to solve it.
Hard to say without knowing the specific warning, but I've managed to run Dynamo scripts via 2023 before without issue that use Python nodes.
@@AussieBIMGuru I want to know if the nodes you used were Python3?
@@auron584 I generally use IronPython but did a test and my CPython nodes seemed to work in testing at least. Maybe lodge a github issue to get detailed assistance.
@@AussieBIMGuru Thanks, I'll try to write github.
Hi Gavin, is there any chance you can teach us how to tag all in elevation view? they are all 3D geographics. i used shape/geometry in dynamo, none would work without crashing , because it actually is going through the whole depth of the building
Unfortunately Revit doesn't know how to detect if something is covered by an object in the view range. Maybe try collecting all objects within a certain distance from your envelope walls a check if theyre visible in active view as well.
i'm curious to know how can we deal with multiline tooltip?
Use this syntax:
title: >-
First line
second line
Gavin, do you know how to use dynamo to modify project location (rename site location name, modify latitude / longitude)?
Hrm not quite sure, given it's a searching tool im guessing it might not be exposed in the API. Worth asking on the forums.
Is anyone alive? How can I disable backups of a regular locally stored file?
You can only fully disable them by making a central model. When you save the model you can reduce the backup count there so less are created.
What about dockable windows? i believe there is a dockable in pydev tools?
Yes you can make winforms using pyrevit I think. It's quite timely but there are some apps in pyrevit like the batch printer that use custom UI's. Haven't seen dockable before though... may need an addin for that.
I have stupid ,, question.. When ever I load Revit with pyrevit it ruins Dynamo.. i.e. the visibility of the nodes.. Is there an easy fix for this?
Chances are there is a custom package competing with it. Try removing all your packages and progressively reinstalling them. Sometimes the generative design package/tool can cause this also - I typically uninstall this anyway.
is it possible to do the same with c#?
Yes. Relay, Nonica and Dyno have done this. As you'll see in future videos pyRevit's major drawcard is in its python based tool creation offerings though.
Great video! I am an electrical engineer by training. Maybe someone knows a channel about electrics in Revit.
Unfortunately I don't, but if anyone in the comments does make sure to leave it here!
Hi I think you subscribed to my channel because I have seen your name. If not here's a link to some basic MEP stuff conduit cable trays etc.
th-cam.com/video/Uwe_SenaWO0/w-d-xo.html
Hi, at 11:07, Can you please tell me how to create this yaml file?
I used notepad++. Save the file and instead of saving as a txt file, save as a yaml file instead by typing the extension in manually.
@@AussieBIMGuru Is this file to arrange the script order? Why can't I write like this?
@@LinhNguyen-zp4cb in that case it is to order the buttons in the toolbar yes. Some are optional but without then pyrevit will make assumptions about these sorts of things.
@@AussieBIMGuru can you upload this file on github ?
@@LinhNguyen-zp4cb you can find some files like this in the files for a future video here:
github.com/aussieBIMguru/Misc/blob/master/ABG_230320_pyRevit%20prefiltering.zip
Hello, how can I contact you? I need your help to explain some things in Revit because I have a final exam and I need to understand something important about DYNAMO.
My email is available on my YT profile information. aussiebimguru@gmail.com
Hi, Gavin
First of all, thank you for your time and great videos, I really appreciated both
Got a question, do you know what this error means?
ERROR [pyrevit.loader.sessionmgr] Can not find command with unique name: pyrevitcore-pyrevit-pyrevit-tools-reload
Thank you again, for your attention!
Hrm strange, havent seen it before. Looks like pyrevit maybe needs a reinstall to fix the missing tool.
@@AussieBIMGuru thanks, Gavin. That's exactly what I did, then I modify the structure in the .extension folder and files, and I finally nailed it. Thank you so much for all your support!
Greetings from Mexico 🇲🇽