diff --git a/src/RhinoInside.Revit.GH/Components/Structure/AddBoundaryConditions-Area.cs b/src/RhinoInside.Revit.GH/Components/Structure/AddBoundaryConditions-Area.cs index 6328eee8f..7af53601d 100644 --- a/src/RhinoInside.Revit.GH/Components/Structure/AddBoundaryConditions-Area.cs +++ b/src/RhinoInside.Revit.GH/Components/Structure/AddBoundaryConditions-Area.cs @@ -135,8 +135,6 @@ Types.GeometryFace surface Create(doc, surface), ExcludeUniqueProperties ); - - bConditions.Document.Regenerate(); } return bConditions; diff --git a/src/RhinoInside.Revit.GH/Components/Structure/AddBoundaryConditions-Line.cs b/src/RhinoInside.Revit.GH/Components/Structure/AddBoundaryConditions-Line.cs index 26a89e09f..dbfa49066 100644 --- a/src/RhinoInside.Revit.GH/Components/Structure/AddBoundaryConditions-Line.cs +++ b/src/RhinoInside.Revit.GH/Components/Structure/AddBoundaryConditions-Line.cs @@ -124,8 +124,6 @@ Types.GeometryCurve curve Create(doc, curve), ExcludeUniqueProperties ); - - bConditions.Document.Regenerate(); } return bConditions; } diff --git a/src/RhinoInside.Revit.GH/Components/Structure/AddBoundaryConditions-Point.cs b/src/RhinoInside.Revit.GH/Components/Structure/AddBoundaryConditions-Point.cs index 1e086e01e..64c54da50 100644 --- a/src/RhinoInside.Revit.GH/Components/Structure/AddBoundaryConditions-Point.cs +++ b/src/RhinoInside.Revit.GH/Components/Structure/AddBoundaryConditions-Point.cs @@ -133,8 +133,6 @@ Types.GeometryPoint point Create(doc, point), ExcludeUniqueProperties ); - - bConditions.Document.Regenerate(); } return bConditions; } diff --git a/src/RhinoInside.Revit.GH/Components/Structure/AddModelElement-Analytical.cs b/src/RhinoInside.Revit.GH/Components/Structure/AddModelElement-Analytical.cs index 31ff72894..98236a137 100644 --- a/src/RhinoInside.Revit.GH/Components/Structure/AddModelElement-Analytical.cs +++ b/src/RhinoInside.Revit.GH/Components/Structure/AddModelElement-Analytical.cs @@ -106,7 +106,7 @@ protected override void TrySolveInstance(IGH_DataAccess DA) ( doc.Value, _ModelElement_, floor => { - var tol = GeometryTolerance.Internal; + var tol = GeometryTolerance.Model; var panel = analyticalElement.Value as ARDB_AnalyticalPanel; if (panel.Thickness == 0.0) @@ -129,15 +129,15 @@ protected override void TrySolveInstance(IGH_DataAccess DA) var floorType = collector. OfCategory(ARDB.BuiltInCategory.OST_Floors). WhereElementIsElementType(). - Where(t => Rhino.RhinoMath.EpsilonEquals + Where(t => GeometryTolerance.Internal.DefaultTolerance.Equals ( t.get_Parameter(ARDB.BuiltInParameter.FLOOR_ATTR_DEFAULT_THICKNESS_PARAM).AsDouble(), - panel.Thickness, - tol.DefaultTolerance) - ). + panel.Thickness + )). Cast(). FirstOrDefault(); + if (floorType is null) throw new RuntimeException($"No floor type found with the same thickness as the analytical panel. {{{analyticalElement.Id}}}"); diff --git a/src/RhinoInside.Revit.GH/Types/GraphicalElement.cs b/src/RhinoInside.Revit.GH/Types/GraphicalElement.cs index 331a3eb46..e0a8400f5 100644 --- a/src/RhinoInside.Revit.GH/Types/GraphicalElement.cs +++ b/src/RhinoInside.Revit.GH/Types/GraphicalElement.cs @@ -96,6 +96,7 @@ public static bool IsValidElement(ARDB.Element element) case ARDB.SpatialElementTag _: return true; case ARDB.IndependentTag _: return true; + case ARDB.Structure.BoundaryConditions _: return true; #if REVIT_2023 case ARDB.Structure.AnalyticalElement _: return true; #else