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

RevitLookup.SnoopElement from InitScript init.py no longer works #157

Open
alexworkorb opened this issue May 28, 2024 · 0 comments
Open

Comments

@alexworkorb
Copy link

alexworkorb commented May 28, 2024

Describe the bug
RevitLookup.SnoopElement from InitScript init.py no longer works.
The error message when trying to execute SnoopElement is:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<string>", line 92, in SnoopElement
AttributeError: 'RevitLookup.Views' object has no attribute 'ObjectsView'

This could be because the 'ObjectsView' class has been removed in RevitLookup in this commit:
jeremytammik/RevitLookup@7fe319d

Experiencing this error with RPS 2.0.2 and RevitLookup 2024.1.4 running on Revit 2024

To Reproduce
Steps to reproduce the behavior:

  1. Open Revit Python Shell inside Revit
  2. execute a SnoopElement such as
_revitlookup.SnoopElement(doc.ActiveView)
  1. See error messae

Screenshots
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant