Skip to content

Commit 9b6fe8b

Browse files
author
Fraser Greenroyd
authored
Change toe radius default value to zero (#387)
2 parents ba19ade + 95d8cf4 commit 9b6fe8b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Lusas_Adapter/CRUD/Create/Properties/GeometricLine.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ private bool CreateProfile(string name, ISectionProfile profile)
257257
int lusasType = 5;
258258
CreateLibrarySection(name, dimensionArray, lusasType);
259259

260+
Engine.Base.Compute.RecordWarning("Toe radius not supported in Lusas. 0 is used for toe radius");
261+
260262
return true;
261263
}
262264

Lusas_Adapter/Convert/ToBHoM/Properties/ToProfile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static IProfile ToProfile(IFAttribute lusasAttribute, int i)
8282
lusasAttribute.getValue("tw",i),
8383
lusasAttribute.getValue("tf",i),
8484
lusasAttribute.getValue("r",i),
85-
lusasAttribute.getValue("r",i)
85+
0
8686
);
8787
break;
8888
}

Lusas_Engine/Query/InvalidSectionProfile.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ public static bool InvalidSectionProfile(this ISectionProperty sectionProfile)
4343
sectionProfile is GeneralisedTSectionProfile ||
4444
sectionProfile is FreeFormProfile ||
4545
sectionProfile is KiteProfile)
46+
{
4647
isInvalid = true;
4748
Base.Compute.RecordWarning("Unsupported SectionProfile (GeneralisedFabricatedBoxProfile, GeneralisedTSectionProfile, FreeformProfile or KiteProfile) assigned to Bar SectionProperty.");
48-
49+
}
4950
return isInvalid;
5051
}
5152
}

0 commit comments

Comments
 (0)