Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrocortesark committed Dec 11, 2024
1 parent f75a020 commit 944ea82
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected override void TrySolveInstance(IGH_DataAccess DA)
var panel = analyticalElement.Value as ARDB_AnalyticalPanel;

if (panel.Thickness == 0.0)
throw new RuntimeArgumentException($"No floor type found with the same thickness as the analytical panel {analyticalElement.Id}");
throw new RuntimeArgumentException($"No floor type found with the same thickness as the analytical panel: {analyticalElement.Id}");

var boundary = new List<Curve> { panel.GetOuterContour().ToCurve() };
foreach (var loop in boundary)
Expand All @@ -135,7 +135,7 @@ protected override void TrySolveInstance(IGH_DataAccess DA)
.ToList();

if (floorTypes.Count == 0)
throw new RuntimeArgumentException($"No floor type found with the same thickness as the analytical panel {analyticalElement.Id}");
throw new RuntimeArgumentException($"No floor type found with the same thickness as the analytical panel: {analyticalElement.Id}");

// Compute
floor = Reconstruct
Expand Down Expand Up @@ -166,7 +166,7 @@ protected override void TrySolveInstance(IGH_DataAccess DA)

// Getting the curve from the analytical member
if (analyticalPanel.Thickness == 0.0)
throw new RuntimeArgumentException($"No wall type found with the same thickness as the analytical panel {analyticalElement.Id}");
throw new RuntimeArgumentException($"No wall type found with the same thickness as the analytical panel: {analyticalElement.Id}");

// Geting the boundary
var boundary = new List<Curve> { analyticalPanel.GetOuterContour().ToCurve() };
Expand Down Expand Up @@ -216,7 +216,7 @@ protected override void TrySolveInstance(IGH_DataAccess DA)
.ToList();

if (wallTypes.Count == 0)
throw new RuntimeArgumentException($"No wall type found with the same thickness as the analytical panel {analyticalElement.Id}");
throw new RuntimeArgumentException($"No wall type found with the same thickness as the analytical panel: {analyticalElement.Id}");

// Getting the ref levels
var bbox = boundary[0].GetBoundingBox(accurate: true);
Expand Down Expand Up @@ -277,7 +277,7 @@ protected override void TrySolveInstance(IGH_DataAccess DA)

// Getting the type
if (!(doc.Value.GetElement(analyticalMember.SectionTypeId) is ARDB.FamilySymbol type))
throw new RuntimeArgumentException($"No section type found in this analytical member to create a structural element:{analyticalMember.Id}");
throw new RuntimeArgumentException($"No section type found in this analytical member to create a structural element: {analyticalMember.Id}");

// Getting the top and base levels
var bbox = curve.GetBoundingBox(accurate: true);
Expand Down Expand Up @@ -325,7 +325,7 @@ topLevel.Value as ARDB.Level

// Getting the type
if (!(doc.Value.GetElement(analyticalMember.SectionTypeId) is ARDB.FamilySymbol type))
throw new RuntimeArgumentException($"No section type found in this analytical member to create a structural element:{analyticalMember.Id}");
throw new RuntimeArgumentException($"No section type found in this analytical member to create a structural element: {analyticalMember.Id}");

// Finding the reference level
var bbox = curve.GetBoundingBox(accurate: true);
Expand Down Expand Up @@ -367,7 +367,7 @@ topLevel.Value as ARDB.Level

// Getting the type
if (!(doc.Value.GetElement(analyticalMember.SectionTypeId) is ARDB.FamilySymbol type))
throw new RuntimeArgumentException($"No section type found in this analytical member to create a structural element:{analyticalMember.Id}");
throw new RuntimeArgumentException($"No section type found in this analytical member to create a structural element: {analyticalMember.Id}");

// Finding the reference level
var bbox = curve.GetBoundingBox(accurate: true);
Expand Down

0 comments on commit 944ea82

Please sign in to comment.