Message 1 of 3
Can I isolate objects in linked file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to isolate an object from the open model together with an object from a linked model. Is this possible somehow?
This code snippet only isolates the object from the current model, and "objectFromLinkedModel" is hidden:
var isolatedObjects = new List<ElementId>()
{
objectFromCurrenntModelId,
objectFromLinkedModelId
};
using (var transaction = new Transaction(doc, "Isolate elements"))
{
transaction.Start();
current3DView.IsolateElementsTemporary(isolatedObjects);
transaction.Commit();
}
In the best of worlds I'm able to use IsolateElementsTemporary, but if that doesn't work, are there any other method to quickly hide all elements except those that I want to isolate? If I collect all elements and hide the in a loop, it's unfortunately reeeeally sloooow and does not work on large models.
Thanks!