Message 1 of 1
UI bug with PickObjects and linked elements
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
See simple macro below and test in a project with a linked model. Seeing this in 2026 (video below), haven't tried earlier versions. When picking linked elements the cursor shows a + (plus) sign, good. As soon as the first element is picked, the cursor changes to a - (minus) sign for the rest of the picking session. It should be a plus sign unless I'm hovering over a previously selected element. Can Autodesk please confirm and fix?
public void SelectLinkedElements()
{
UIDocument uidoc = this.ActiveUIDocument;
Document doc = uidoc.Document;
ObjectType objType = ObjectType.LinkedElement;
List<Reference> elemRefs = new List<Reference>();
try
{
elemRefs = uidoc.Selection.PickObjects(objType, "Pick elements").ToList();
}
catch (Autodesk.Revit.Exceptions.OperationCanceledException)
{
}
TaskDialog.Show("Picked elements", elemRefs.Count + " elements picked.");
}