Awesome work Gavin!! One tip btw, you can check code for pyRevit buttons by pressing ALT and left click on some of the button (for example MRead) and it will open you a folder where script for that button is placed.
Just remember to clear all temp files before starting this, especially if it has been a while (win+i -> system -> storage), or else you might have an issue with icons showing up in Revit; it took me more than a minute to figure that out. Thanks Gavin!
For all those having issues getting the toolbar to show up in Revit. An easy work around I've found is to copy the folder into the pyrevit directory manually. Click on the pyRevit toolbar drop down. Then select extensions and make note of the folder that extensions are being store in ( shown at the bottom of the popup).Then copy and paste your folder structure directly into that location. This however doesnt live link to the folder as i imagine the other technqiue will but if you replace the folder with a new version and reload it should be fine for personal usage. This worked for me but might not for everyone. Hope this helps
Thanks for the tip! To add to this, I've found if you place your folder on a cloud environment that can cause issues as well, such as OneDrive or Google Drive folders using the Windows addin. Best results I find are from putting it in a user folder like My Documents.
Gotcha! If anyone got stuck in somewhere like me. Just go back a new folder, create a simple folder. Root Folder > [anything].extension > [anything].tab > [anything].panel > [anything].pushbutton > (script.py with simple print("hi") + icon.png (exactly 96x96 pixel)). At first, bundle file or layout file is NOT necessary! Good luck!
Sure is, enter the title like this in the yaml file: title: >- --Line 1 --Line 2 Use spaces in lieu of the - at the start of each line, I've used this symbol so it's easier to see the spacing.
I've recently had a new work PC, and trying to re-associate my previous custom extensions, but the custom extension directory paths don't seem to save? I add the directory and save/reload, no new tabs are added, and when I head back into the settings, the paths are gone. Has anyone else come across this issue? I'm using Revit 2020 and 2023 if that helps
Hello, can’t wait for part with Dynamo Scripts inside extension. To Run The script from my pyRevit ribbon do I have to have custom UI inside Dynamo to force inputs?
Coming next week! But yes we will need to use data shapes to make user inputs. We'll go into pyrevit scripting soon as well which comes with many inbuilt forms in its default libraries luckily.
Thank you! I'm still stuck with Revit 2024. Nothing loaded. I have already moved folder to document, named .panel ( not ".Panel), "_layout" file instead of bundle.yaml BUT nothing happened. Help!
Hi Gavin! Super video, but one thing doesn't seem to work out for me. Icons don t show in my bundle... i rename them "icon.png" and nothing happens. Everything else is working so far. Thanks for the tutorials , you re the best.
I know I am late to the comment lol. I am working in Revit 2023. I had the same issue. I don't know if it changed due to updates in recent years but the ".png" is not need. Just name it "Icon" and it should work.
Hi Gavin, amazing work as always! Is it possible to have a drop down menu within another drop down menu? I have tried doing so by simply nesting a .pulldown file in a .pulldown file but the tool bar doesn't seem to pick this up. I was wondering if there is something I need to do within the bundle.Yaml file.
I believe the deepest you can go is a stacked dropdown in an expanded panel. Haven't tried dropdown in dropdown but I doubt it would work as you could infinitely nest buttons if so.
Dear Aussie, first of all i would like to send for you a lot of worm thanks for all the knowledge you provide, I am really learning from you a lot. I had a question regarding the topic of this video, after i created my own toolbar and buttons, i want to know how to reorder these icons, i mean i need to keep the links at left, then other tools, even if i am writing the bundle file in this order i found them in another order in the revit toolbar. thanks in advance
Hi Gavin, are we able to have Pyrevit (in different Revit versions) pointing at different custom folders for extensions? Some scripts only work in 2019 not in 2020.
I dont believe so, it usually shares its settings across builds. You can however use bundle files and 'context' to limit which versions scripts can be ran in I think.
@@AussieBIMGuru Thanks Gavin, I think Pyrevit CLI might be able to make some configuration to Revit versions. Another question is, are we able to NOT show the Bundle name when the mouse hovers over the icon?
When you first open notepad++ in your video, How do you type two symbols being used? I think I got the first one which is a raised dot, but I can't find what the second symbol is used? Thank you in advance.
The raised dot is actually a space. Notepad++ can be set to show whitespace which is really helpful when programming. You can adjust this setting in the preferences area of the application.
@@AussieBIMGuru thank you. I will look. I also wondered what the other symbol (hyphen) that typed? And. How did you get the collapsable plus sign? I have seen it in a bundle that I opened but can not reproduce it. Thank you. By they way I was able to do tutorial on my machine so thanks to you again.
@@brandonkemp9579 the symbols are likely one of the following which are common to python: # / \ - _ [ ] To get the + you will need the file to be saved as a relevant format such as .yaml or .py.
Hi Gavin, thanks for a great tutorial, you have inspired me to venture into the murky world of custom tools. I noticed the current github download of your excellent guRoo tools does not have the 'guRoo.extension' directory so does'nt show up in the Revit ribbon. I created a dir called guRoo and placed it in the pyRevit extensions folder in appdata (C:\Users\pcname\AppData\Roaming\pyRevit\Extensions\guRoo\guRoo.extension) . Then renamed the 'guRoo_main' folder containing the tools to 'guRoo.extension', then all works and shows up . Many Thanks for sharing all your hard earned knowledge.
Ah yes right you are.... it's mainly to support the CLI based install method which wraps this all into a .extension automatically, but your solution works also.
Hello! Thank you for the video, I really enjoy your way of explaining stuff. I was just wondering if it is possible to insert a link to a place on my server instead of youtube/github link. As BIM manager I would like to let my workmates know where they can find tutorials or templates or libraries prepared by BIM manager in our office.
Yes you can use the os python library to open folder paths. I use this method in a few scripts currently in order to open server locations for a client and it works well.
@@AussieBIMGuru Thanks for your answer. I found the solution in renaming the button folders. The title is specified in the yaml file so it doesn't change the name in Revit. But I'll try restarting Revit, maybe it works too
@@AussieBIMGuru I got it figured out, simple typo in one of my folder names lol. Thank you for all the amazing content. I have learned so much from your channel over the past year.
Hrm I'm not sure actually, you could try using a yaml file at the panel level to try to set its title but I've only got 2 line names to work for buttons so far.
Hi Gavin! Super video, but one thing doesn't seem to work out for me. I can't make the bundle to work, have looked around a bit on the documentation pages of pyrevit and still can't figer it out. Is it possible to make a video on these :), would be super helpfull! I think there is alot of info in there, like background colors and those kind of things.
I'd recommend borrowing some bundle files from pyRevit itself as a template, the tools should be openable via Revit if you alt + click on the buttons. All of Ehsan's work is open for viewing and he uses bundles for both naming of tools and organisation of pulldowns, panels etc. That's pretty much how I learnt about them myself originally (and still do when I come across extra things like 'context' settings).
Hi Gavin, I tried everything as you explained. Also your pyRoovit, downloaded from your Git. None of the tools are being loaded into my revit 2022. I don't know why!!
@@AussieBIMGuru Hi, do you know if there is an issue for Revit 2022 ? I can't use it on Revit 2022. Thanks for this video and this plugin. I'm using in on older version of Revit and it's really nice !
This was Great But Facing this issue, can you help with this. CRITICAL [pyrevit.loader.uimaker] Error creating item: | 'GenericUIComponent' object has no attribute 'has_commands' Please help with this. Thanks
Unfortunately I am not familiar with this specific issue. My best guess is there is an error in the bundle file or the Icon file isn't at a suitable aspect ratio.
@@AussieBIMGuru I am also receiving this error. Followed instructions step by step. Both icons I pulled from Icons8. Any further thoughts on why I would be getting this error?
hi, did you remember my question about a plug-in for creating a family window and placing it on the wall of Revit by using an user interface, python and C#? i'm facing this kind of error, : "Value cannot be null. Parameter name: symbol". Actually, I think that my error come from the win_type variable used to create the window family is null at this time. Do you know how to handle with this kind of error? i can also give you some other informations, can you give me your email?