Skip to content

Commit

Permalink
Mix of fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kike-garbo committed Dec 17, 2024
1 parent f0a785f commit 1b1e4e9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ Types.GeometryFace surface
Create(doc, surface),
ExcludeUniqueProperties
);

bConditions.Document.Regenerate();
}

return bConditions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ Types.GeometryCurve curve
Create(doc, curve),
ExcludeUniqueProperties
);

bConditions.Document.Regenerate();
}
return bConditions;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ Types.GeometryPoint point
Create(doc, point),
ExcludeUniqueProperties
);

bConditions.Document.Regenerate();
}
return bConditions;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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<ARDB.FloorType>().
FirstOrDefault();


if (floorType is null)
throw new RuntimeException($"No floor type found with the same thickness as the analytical panel. {{{analyticalElement.Id}}}");

Expand Down
1 change: 1 addition & 0 deletions src/RhinoInside.Revit.GH/Types/GraphicalElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b1e4e9

Please sign in to comment.