Isolate AssemblyInstances on View

Isolate AssemblyInstances on View

gtuda123
Observer Observer
203 Views
1 Reply
Message 1 of 2

Isolate AssemblyInstances on View

gtuda123
Observer
Observer

Is it possible to isolate AssemblyInstance elements in a view the same way as when doing it manually in Revit?

It seems that the only option available through the API is to isolate the assembly members individually using GetMemberIds(), but the result is not the same as the manual Temporary Hide/Isolate → Isolate Element command.

0 Likes
Accepted solutions (1)
204 Views
1 Reply
Reply (1)
Message 2 of 2

Radwan-Almsora
Contributor
Contributor
Accepted solution

Yes, you can isolate an AssemblyInstance in a view via the API using IsolateElementsTemporary(). However, simply feeding the AssemblyInstance.Id directly to the method will fail or act empty. You must include both the Assembly ID and the Assembly Member IDs in your list.

 

Did you find this post helpful? If it gave you one or more solutions,

don't forget to click the Accept Solution button and leave a < like !