Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to highlight element in Linked model by API

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
1187 Views, 2 Replies

How to highlight element in Linked model by API

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 !

Labels (1)
2 REPLIES 2
Message 2 of 3
prasannamurumkar
in reply to: Anonymous

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

Message 3 of 3
Anonymous
in reply to: prasannamurumkar

thanks ,I will try it.

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report