Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
David Veld committed Apr 19, 2024
1 parent 5e1c6e1 commit 53e6e77
Show file tree
Hide file tree
Showing 7 changed files with 398 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CarboCroc/CarboCroc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="GH_IO">
<HintPath>..\..\..\..\Program Files\Rhino 6\Plug-ins\Grasshopper\GH_IO.dll</HintPath>
<HintPath>..\..\..\..\..\..\Program Files\Rhino 7\Plug-ins\Grasshopper\GH_IO.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Grasshopper">
<HintPath>..\..\..\..\Program Files\Rhino 6\Plug-ins\Grasshopper\Grasshopper.dll</HintPath>
<HintPath>..\..\..\..\..\..\Program Files\Rhino 7\Plug-ins\Grasshopper\Grasshopper.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="PresentationCore" />
Expand Down
6 changes: 3 additions & 3 deletions CarboLifeAPI/Data/CarboGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ private string GetDescription(CarboElement carboElement)
if (carboElement.isExisting == true && carboElement.isDemolished == false)
prefix = "Existing ";

if (carboElement.isSubstructure == true)
suffix = " (Substructure)";
// if (carboElement.isSubstructure == true)
// suffix = " (Substructure)";

result = prefix + carboElement.Category + suffix;

Expand Down Expand Up @@ -628,7 +628,7 @@ internal void getDescription(CarboGroupSettings importSettings)
//check if substructure note is required.
if (importSettings.IncludeSubStructure == true && isSubstructure==true)
{
description += "(Substructure)";
description += " (Substructure)";
}

if (importSettings.IncludeAdditionalParameter == true && additionalData != "")
Expand Down
5 changes: 5 additions & 0 deletions CarboLifeAPI/Data/CarboProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2120,6 +2120,11 @@ private CarboGroup getRCGroup(CarboGroup grp, CarboMaterial reinforcementMateria
result.Category = "Reinforcement";
result.Description = grp.Category + " reinforcement " + rcDensityProperty.Value.ToString() + " kg/m³";

if (result.isSubstructure == true)
{
result.Description += "(Substructure)";
}

//based on the values set a volume;
if (grp.AllElements.Count > 0)
{
Expand Down
Loading

0 comments on commit 53e6e77

Please sign in to comment.