BHoM/Lusas_Toolkit

Issue pulling back section from Lusas.

KalleEdstroem opened this issue · 1 comments

Description:

Pushing to sections from database:

  • UK, UB 1016x305x584
  • UK, UB 762x267x134

Push component warns for unsupported section profile. -> But both appearing in Lusas.
Warning message: Unsupported SectionProfile (GeneralisedFabricatedBoxProfile, GeneralisedTSectionProfile, FreeformProfile or KiteProfile) assigned to Bar SectionProperty.

Pulling back using pull component with a bar request

The call for ISectionProperty only gives one of the sections existing in Lusas back.

IEnumerable<ISectionProperty> sectionPropertiesList = GetCachedOrRead<ISectionProperty>();
Dictionary<string, ISectionProperty> sectionProperties = sectionPropertiesList.ToDictionary(x => x.Name.ToString());

The section getting pulled back with the bars (UB 1016x305x584) has after coming back had its geometry changed with a toeRadius added. It is the same value as the previous rootRadius

3 issues

  • Warning for an unsupported section and still all sections appearing in Lusas.
  • GetCachedOrRead<ISectionProperty>(); only giving one of the sections back.
  • SectionProfile.ToeRadius is altered when pulled back.

Steps to reproduce:

Follow test script.

Expected behaviour:

Test file(s):

https://burohappold.sharepoint.com/:u:/r/sites/BHoM/02_Current/12_Scripts/01_Issue/BHoM/Lusas_Toolkit/%23386%20sections%20not%20handled%20correctly%20in%20push%20and%20pull.gh?csf=1&web=1&e=A4fzFf