Message 1 of 4
Revit becomes slow after apply automatic join
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
When I use the automatic join external tool, other built in Revit tools becomes slow when starting the command like when I press "vv" Revit takes a lot of time to show the visibilty window. I think there is a something wrong in my code.
public void joinSelection(ElementSet wallsFloors) { using (Transaction t = new Transaction(doc, "Join All Walls/Floors")) { t.Start(); foreach (Element e1 in wallsFloors) { foreach (Element e2 in wallsFloors) { try { if (!(JoinGeometryUtils.AreElementsJoined(doc, e1, e2))) { JoinGeometryUtils.JoinGeometry(doc, e1, e2); } } catch (Exception) { } } } t.Commit(); } }
Kindly explain the reason and advise what shoud I do to make revit quick as usual.
Thanks in advance.