Closed wyattc closed 5 years ago
Thanks for the report!
A quick solution is to rename the .addin
file for HIVE to something that is alphabetically before pyRevit.addin
. the HIVE will be loaded first.
I'll see what I can do on my side.
Could you possibly figure out what Mahapps version HIVE is using?
HIVE uses 1.5.0.23 of the dll and includes it in the addin bundle folder. the name of the manifest is CTC-Hive-Suite.addin which means it's already alphabetically first. It loads from the addins folder in ProgramData, not in the userdata location like pyRevit. I have not tested this yet, perhaps i'll try loading from ProgramData.
Addins in %programdata%
should load first. Maybe change pyRevit.addin
to ZZZpyRevit.addin
and test? Thanks for the hive dll info
Renaming didn't affect it. Am i correct in stating that pyRevit loads on app start? HIVE doesn't use the UI dll until the button is pushed to open it. I am going to test another 'loading' scenario. Will post the result.
Yes. pyRevit loads its dlls on start so the environment is ready. HIVE should really compile the product against the specific dll version. Is there a *.dll.config
file in the HIVE folder? that config file tells the dll binder what dll versions are allowed.
Okay, I may have found another way to make them both work, assuming pyRevit is okay to use the older .dll: Our tool suites use a common location for .dll that they share. Although this one is not used by any of our other apps (yet), we will move it to the common location for future releases. we will also investigate what breaking changes there were with the newer version and HIVE. Thank you for your time in helping to figure this out. Will update you with our solution. Please let me know if you encounter any issues with the older version of MahApps and pyRevit.
Sure thing. Should this be closed then?
I have a solution but it requires a little manual labor:
We will have an update to HIVE in a couple weeks and with it the commonrevit location of the mahapps dll will be changed.
Sure thing. Should this be closed then?
I think it's okay to close. Just wanted to put the steps up for others that might encounter this issue. thanks for your help!
Issue Description
After installation of pyRevit 4.6.8, the HIVE addin for Revit appears black. Upon further investigation, I found that the MahApps.Metro.dll is of a newer version in pyRevit. I also found that pyRevit functions correctly with the older version however, HIVE still does not appear correctly, Disabling the pyRevit addin allows the HIVE addin to load and function. I also found that if I load pyRevit after Revit and HIVE have loaded, HIVE continues to function correctly.
We are investigating a solution. If there is something you might be able to do on your end, it would be great to hear.
Environment