Closed MButts29 closed 1 year ago
Please join the icon and yaml file
Have you tried to copy the content of a pyrevit urlbutton tool in your own toolbar to figure out if it is a pyrevit issue or just a wrong syntax in the bundle file or a wrong image size or type for the icon
@jmcouffin
Thank you for your response. I copied the content of a urlbutton (the Icons8 one) from the pyrevit-master folder and placed it in my toolbar and that has worked (image is showing and the link is working).
I copied the bundle file (from the Icons8) to my Github urlbutton folder, without editing it, but with the Github image (96px and png) and the Github image shows:
However, when I edit the original bundle file, to update the info to be Github specific, the button title and tooltip info do not update:
You made a reference in your post about joining the icon and yaml files. What does that mean? I'm wondering if that may be what is causing my urlbutton info not to update.
Thanks.
You made a reference in your post about joining the icon and yaml files. What does that mean? I'm wondering if that may be what is causing my urlbutton info not to update.
I meant attaching/joining the file in the issue so that I can test them
Anyway, when you change url button bundle file, you will need to restart revit to get your ui updated. The reload button won't work in that specific case.
Max size for icons is 96*96 and icons8 is a good spot to get an icon.png
Ahh, OK. I restarted Revit (2023) and it still did not update the button. However, when I start Revit 2024, the button updated. After it updated in Revit 2024, I closed Revit 2023 and reopened, but it still did not update. I also just opened Revit 2022 and Revit 2021 and the button updated. I am going to restart my computer to see if I can get Revit 2023 to update the url button. It is strange.
@jmcouffin
The restart did not work, Revit 2023 does not have the updated url button (all other versions do). What can I attached that would help you debug this issue?
Thanks.
What can I attached that would help you debug this issue?
no that's ok.
I suggest you close 2023 and delete the folder %appdata%\pyRevit\2023 then restart Revit
for whatever reason the urlbutton bundle content seems to be cached and not touched by the reloading (the cache not being reconstructed)
Clearing the cache fixed everything. Thanks, @jmcouffin
😃
Describe the bug I have created my own toolbar that contains a Github url pushbutton and a stack of (3) pushbuttons that each run a Dyanmo script in Revit. I have icon.png images for each pushbutton but none of the icons are loading when I get into Revit. I have reloaded the custom extension directory, have restarted Revit, and have tried in multiple versions of Revit - to no avail.
The yaml files, url, and the Dynamo scripts work as intended, the icons are just not showing on the toolbar.
Screenshots The setup for the Github pushbutton:
How the pushbutton looks in Revit (it should show the Github image icon):
Desktop (please complete the following information):
Thanks.