Skip to content

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

Open
@alexworkorb

Description

@alexworkorb

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:
lookup-foundation/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions