Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm using Dynamo to write a Python script to move some objects around.
I'm trying to get a user selection of objects using:
obstorotate = Autodesk.Revit.UI.Selection.PickElementsByRectangle()
But I get the error:
Attribute Error: attribute 'PickElementsByRectangle' of 'namespace#' object is read-only.
I believe this is because I'm not importing the class, but still get the error when I add this at the beginning:
clr.AddReference('RevitAPIUI')
from Autodesk.Revit.UI import SelectionI'd appriciate some pointers on what I'm missing.
Thanks.
Solved! Go to Solution.