Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyRevit will not show up in toolbar for Revit 2021.1.6 #1612

Closed
sfnordic opened this issue Sep 8, 2022 · 7 comments
Closed

pyRevit will not show up in toolbar for Revit 2021.1.6 #1612

sfnordic opened this issue Sep 8, 2022 · 7 comments
Labels
Closed Old Issue Issue older than a year. Thanks for pointing it out. If you feel it is still relevant, feel free to Runtime Issues related to loading pyRevit runtime [subsystem]

Comments

@sfnordic
Copy link

sfnordic commented Sep 8, 2022

Describe the bug
As a Revit 2021.1.6 user, I want to install pyRevit and use it in a collaborative project. The install has been successful with no errors. However, when I try and open Revit, I get an error message (see screenshot). There is no pyRevit in revit as expected. We have successfully installed pyRevit for revit 2023, but we use multiple versions in the office.

We have tried the suggested solution below but it did not work:
If you have installed pyRevit, and the installation completed with no errors but pyRevit doesn't load, please run the command below in terminal. This should fix the issue on your machine, however, please continue filing the issue with instructions below.

pyrevit attach master 277 --installed

To Reproduce
Steps to reproduce the behavior:

  1. Install revit 2021.2.6
  2. Install pyRevit
  3. Restart computer
  4. Open Revit 2021.2.6

Expected behavior
Revit to open without error message

Screenshots
If applicable, add screenshots to help explain your problem.
image
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • pyRevit Version [e.g. 22]
  • pyRevit Environment: Open a command prompt and run the command below. Replace these lines with the results. Take a look at this markdown guide and wrap the command results in ``` when pasting here for correct formatting.

pyrevit env

Additional context
Add any other context about the problem here.

@jmcouffin
Copy link
Contributor

Hi @sfnordic,
It looks like a conflict between two revit addins as it is revit version specific
you might want to try to temporarily disable all non autodesk addins except pyRevit for Revit 2021 and then see if it works.
If so, re-activate addins one by one (every time starting revit to identify which ones are note playing well together)

to activate/deactivate addins, you can use https://diroots.com/apps/diroots-app-manager/

@sfnordic
Copy link
Author

sfnordic commented Sep 15, 2022 via email

@jmcouffin
Copy link
Contributor

We have already tried this. Do you have any other suggestions we might try?

Last issue I replied to, which looked pretty much like your involved an addin with either a conflict of version of ressources or a different version python being loaded before pyRevit. It is a pretty common pattern. See here #1614
So if you really tried to disable all addin except the pyRevit one, no, I have no other hint. Sorry.

@PiperBIM
Copy link

PiperBIM commented Sep 29, 2022

I was having the same issue with getting PyRevit to load when I'd start Revit, I believe it was after I installed some other addins for revit. I found a solution somewhere on this forum but can't remember where. Basically the solution was to rename the PyRevit add in in the addins folder (C:\ProgramData\Autodesk\Revit\Addins\2021). I added a zero to the name of the pyrevit addin at the start of the name so it appears at the top of the addins list. Revit apparently loads addins in alphabetical order. This fixed the issue for me by loading PyRevit prior to any of my other addins.

@jmcouffin
Copy link
Contributor

@PiperBIM that is indeed a good strategy
@sfnordic can you try this and report back?

@PiperBIM
Copy link

There is a possibility that this causes issues with BIM 360 if that is used. I am getting an issue where I can't access cloud models through BIM 360 after doing this & it might be due to this running during Revit start up prior to the BIM Collaborate addins, I'm guessing it shouldn't matter but I don't know enough to know for sure.

@jmcouffin
Copy link
Contributor

There is a possibility that this causes issues with BIM 360 if that is used. I am getting an issue where I can't access cloud models through BIM 360 after doing this & it might be due to this running during Revit start up prior to the BIM Collaborate addins, I'm guessing it shouldn't matter but I don't know enough to know for sure.

related https://thebuildingcoder.typepad.com/blog/2022/10/bim360-links-and-programming-add-ins.html#3

@eirannejad eirannejad added the Runtime Issues related to loading pyRevit runtime [subsystem] label Jan 2, 2023
@jmcouffin jmcouffin added the Closed Old Issue Issue older than a year. Thanks for pointing it out. If you feel it is still relevant, feel free to label Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Old Issue Issue older than a year. Thanks for pointing it out. If you feel it is still relevant, feel free to Runtime Issues related to loading pyRevit runtime [subsystem]
Projects
None yet
Development

No branches or pull requests

4 participants