How to highlight element in Linked model by API

How to highlight element in Linked model by API

Anonymous
Not applicable
1,573 Views
2 Replies
Message 1 of 3

How to highlight element in Linked model by API

Anonymous
Not applicable

I have the Id of a element in linked model.I tryed a lot of ways to hightlight it in my host model,but failed.Some like  uidoc.Selection.SetElementIds(new List<ElementId> { ele.Id});

But I found Revit can do it in its own "crash detective" tool.QQ截图20201217181535.png

Can anyone tell me how can I do like this .Or give me some other advise to highlight linked model elements.Thank you !

0 Likes
1,574 Views
2 Replies
Replies (2)
Message 2 of 3

prasannamurumkar
Advocate
Advocate

Hi,

You cannot highlight element in linked model as you can open only one doc object once in revit api as current doc is open you cannot highlight element in linked doc.

To see elements in linked model one thing you can do is

1.Get location of linked model element.

2.Apply transform you will get location of linked model  element in current document.

3.Zoom specific area of that element you want to see using Zoom and centre rectangle api.

 

api.

Thanks and regards

-prasanna

0 Likes
Message 3 of 3

Anonymous
Not applicable

thanks ,I will try it.

 

0 Likes