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

Add support for future ETABS versions #399

Merged

Conversation

IsakNaslundBh
Copy link
Contributor

@IsakNaslundBh IsakNaslundBh commented Jan 18, 2022

Issues addressed by this PR

Closes #391

WIth the API changed for Etabs from version 18 and onwards, the API is stated to work for future versions of the software. Hence, refactoring the adapter to reflect this. The ETABS18ADapter is renamed ETABSAdapter, as it should work for 18, 19 and future versions, with no requirements for special builds.

Keeping the 2016 and 17 adapters as is for backwards compatibility with those versions of the software.

The initialisation code for starting ETABS has been changed for the new ETABSAdapter to start the latest version of ETABS installed on the system, rather than pointing at a particular source folder. This means this part of the code does not need to be updated for every release of the software, and mimics what has been done for SAP2000.

Also cleaned up a significant amount of unrequired usings of the api reference to simplify the code.

Test files

Specific testfile to test versioning in here. To test the versioning, make sure you manually delete the Etabs18_adapter.dll file from the assemblies folder in ProgramData. On this PR the EtabsAdapter will be marked as prototype, but that will not be the case as soon as the dlls have been updated in the installer.:

https://burohappold.sharepoint.com/:f:/s/BHoM/EjQQjb2k76pDs0Nkecwaq4IBOHDMKP_yNS4dcZnx3nYpVA?e=ubLiiO

The ETABSAdapter should work as the previous ETABS18ADapter did. Regular test scripts or project scripts good to use as a test-case.

Changelog

  • Rename ETABS18Adapter to ETABSAdapter
  • Make sure the ETABSAdapter starts the latest available version of ETABS on the computer

Additional comments

- Renaming ETABS18Adapter to simply ETABSAdapter to be used with any future version of ETABS
- Adjusting default build to target ETABSAdapter, and using ETABSv1 api reference
…pter is starting the latest version of Etabs
@IsakNaslundBh IsakNaslundBh added the type:feature New capability or enhancement label Jan 18, 2022
@IsakNaslundBh IsakNaslundBh self-assigned this Jan 18, 2022
@IsakNaslundBh
Copy link
Contributor Author

@BHoMBot check core

@bhombot-ci
Copy link

bhombot-ci bot commented Jan 18, 2022

@IsakNaslundBh to confirm, the following checks are now queued:

  • core

There are 10 requests in the queue ahead of you.

@IsakNaslundBh IsakNaslundBh requested a review from Droidx1 January 18, 2022 12:08
@IsakNaslundBh
Copy link
Contributor Author

@BHoMBot check compliance

@bhombot-ci
Copy link

bhombot-ci bot commented Jan 18, 2022

@IsakNaslundBh to confirm, the following checks are now queued:

  • code-compliance
  • documentation-compliance
  • project-compliance
  • branch-compliance
  • dataset-compliance
  • copyright-compliance

Copy link
Contributor

@JosefTaylor JosefTaylor left a comment

Choose a reason for hiding this comment

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

Checked with ETABS 19, works great!

@IsakNaslundBh
Copy link
Contributor Author

@BHoMBot check versioning
@BHoMBot check serialisation
@BHoMBot check null-handling
@BHoMBot check core

@bhombot-ci
Copy link

bhombot-ci bot commented Jan 20, 2022

@IsakNaslundBh to confirm, the following checks are now queued:

  • versioning
  • serialisation
  • null-handling
  • core

@IsakNaslundBh
Copy link
Contributor Author

@BHoMBot check installer

@bhombot-ci
Copy link

bhombot-ci bot commented Jan 20, 2022

@IsakNaslundBh to confirm, the following checks are now queued:

  • installer

@bhombot-ci
Copy link

bhombot-ci bot commented Jan 20, 2022

@IsakNaslundBh just to let you know, I have provided a check-installer result to this Pull Request as it was detected to be linked to other Pull Requests in a series. The comment which triggered this check came from @IsakNaslundBh on BHoM_Installer

@IsakNaslundBh IsakNaslundBh merged commit cf8156c into main Jan 20, 2022
@IsakNaslundBh IsakNaslundBh deleted the ETABS_Toolkit-#391-AddSupportForFutureEtabsVersions branch January 20, 2022 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New capability or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ETABS_Toolkit: Add support for ETABS19
2 participants