BHoM / BHoM/Lusas_Toolkit

More descriptive error message for pushing to empty analysis model

Open
#412 0 comments 0 reactions 0 assignees View on GitHub
type:bug
Dominant language
C#
Stars
3
Forks
2
PR merge metrics
No merged PRs in 30d

Description

#### Description:

When attempting to push elements without bars, the error message shown did not describe the error in detail. The error message was "Invalid analysis/loadcase".
![image](https://github.com/user-attachments/assets/b16496fe-6e1d-4515-91ba-b97bb1933524)

#### Steps to reproduce:

Push elements without an analysis in Lusas

#### Expected behaviour:

A message describing the issue, such as "The user needs to create at least one Analysis as per the default model in Lusas."

#### Test file(s):

https://burohappold.sharepoint.com/:u:/r/sites/BHoM/Installers/Scripts/Burohappold_BHoM_v7.3/Structures%20-%20Create%20-%20Read%20-%20Update%20-%20Elements/BuroHappold_BHoM_v7.1.beta_Create%20-%20read%20-%20elements%20-%20bridges.gh?csf=1&web=1&e=8iM0yX

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the linked Structures - Create - Read - Update - Elements test file, pushing elements without an analysis in Lusas. Find where the "Invalid analysis/loadcase" message is produced and make the failure explain that at least one Analysis is required; confirm the updated message during the same reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.