UI bug with PickObjects and linked elements

UI bug with PickObjects and linked elements

Michael_Coffey_G
Contributor Contributor
232 Views
0 Replies
Message 1 of 1

UI bug with PickObjects and linked elements

Michael_Coffey_G
Contributor
Contributor

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.");
      }

(view in My Videos)

0 Likes
233 Views
0 Replies
Replies (0)