Message 1 of 9
Can't cut join element issue

Not applicable
02-05-2016
04:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When I joining the structural column and floor it gives warning that can't cut join element.Why this warning is occurred? What should I write in this code for ignoring this warning? This my code which I am using for joining the elements: UIApplication uiApp = commandData.Application; UIDocument uidoc = uiApp.ActiveUIDocument; Document doc = uidoc.Document; using (Transaction t = new Transaction(doc, "Join All Walls/Floors")) { t.Start(); FilteredElementCollector col = new FilteredElementCollector(doc, doc.ActiveView.Id); col.OfClass(typeof(FamilyInstance)); col.OfCategory(BuiltInCategory.OST_StructuralColumns); foreach (FamilyInstance column in col) { // get the bounding box of this wall // BoundingBoxXYZ bbox = column.get_BoundingBox(null); // create an outline from the min and max points of the bounding box // Outline outline = new Outline(bbox.Min, bbox.Max); // find all floors that intersect the wall foreach (Element floor in new FilteredElementCollector(doc) .OfClass(typeof(Floor)) .WherePasses(new ElementIntersectsElementFilter(column))) { check = JoinGeometryUtils.AreElementsJoined(doc, column, floor); if(check==true) { } else { JoinGeometryUtils.JoinGeometry(doc, column, floor); JoinGeometryUtils.SwitchJoinOrder(doc, column, floor); } } } t.Commit(); } return Result.Succeeded; }