Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Bug when Creating Bars in ETABS21 #483

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

GCRA101
Copy link
Contributor

@GCRA101 GCRA101 commented Oct 28, 2024

Issues addressed by this PR

Closes #482

Push to ETABS - Success - VS View

Push to ETABS - Success - ETABS View

ETABS Toolkit now able to push bars to ETABS 21 by skipping not-working API function by using a new Debug21 Configuration.

Test files

Grasshopper File
https://burohappold.sharepoint.com/:u:/r/sites/BHoM/02_Current/12_Scripts/02_Pull%20Request/BHoM/ETABS_Toolkit/%23483-FixBugWhenCreatingBarsInETABS21/BHoM%207.3.1%20Test%20-%20Bar%20Object%20Push%20to%20ETABS%2021%201.gh?csf=1&web=1&e=LaeSMJ
ETABS File
https://burohappold.sharepoint.com/:u:/r/sites/BHoM/02_Current/12_Scripts/02_Pull%20Request/BHoM/ETABS_Toolkit/%23483-FixBugWhenCreatingBarsInETABS21/Test%20ETABS%20Model.EDB?csf=1&web=1&e=boM6fg

Changelog

  • Added new configurations Debug21 and Release21
  • Used new configurations to skip ETABS 21 API function not working

@GCRA101 GCRA101 self-assigned this Oct 28, 2024
@GCRA101 GCRA101 added the type:bug Error or unexpected behaviour label Oct 28, 2024
@GCRA101 GCRA101 added this to the BHoM 7.4 β MVP milestone Oct 29, 2024
Copy link
Member

@peterjamesnugent peterjamesnugent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're adding an alternate configuration, you will need to add it to the installer:
https://github.com/BHoM/BHoM_Installer/blob/develop/IncludedRepos/altConfigs.txt

ETABS_Toolkit.sln Outdated Show resolved Hide resolved
Etabs_Adapter/Etabs_Adapter.csproj Show resolved Hide resolved
Comment on lines +158 to +165
#if Debug21 == false && Release21 == false

if (m_model.FrameObj.SetInsertionPoint(name, (int)bhBar.InsertionPoint(), false, bhBar.ModifyStiffnessInsertionPoint(), ref offset1, ref offset2) != 0)
{
CreatePropertyWarning("Insertion point and perpendicular offset", "Bar", name);
ret++;
}
#endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this actually work in practice? You can simplify the if statement, but just checking `#if Debug21' - VS has quite a good UI feature that highlights the code that is active dependent on the build configuration.

@GCRA101
Copy link
Contributor Author

GCRA101 commented Nov 5, 2024

@peterjamesnugent, I've added the new ETABS 21 Release to the Installer. Below the link to the Pull Request
BHoM/BHoM_Installer#227

@peterjamesnugent
Copy link
Member

@GCRA101 as discussed to add altconfigs to installer and update preprocessor directives to #if Debug21 || Release 21 etc.

@Chrisshort92
Copy link
Contributor

@BHoMBot check installer

Copy link

bhombot-ci bot commented Nov 25, 2024

@Chrisshort92 to confirm, the following actions are now queued:

  • check installer

@Chrisshort92
Copy link
Contributor

@BHoMBot Check Installer

Copy link

bhombot-ci bot commented Nov 25, 2024

@Chrisshort92 to confirm, the following actions are now queued:

  • check installer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Error or unexpected behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Bug when Creating Bars in ETABS21
3 participants