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

CNX-9441-ETABS-to-Revit-Scaling-Issue #3410

Merged
merged 1 commit into from
May 14, 2024
Merged

Conversation

connorivy
Copy link
Contributor

Description & motivation

Conversation on forum (https://speckle.community/t/revit-etabs-connection-scaling-issue/9916/15) revealed that etabs units were not being retreived correctly when the units were a mix of metric and imperial. This is because we were using Model.GetPresentUnits() which returned the following enum
image

Clearly, there are no options corresponding to mixed unit values such as imperial length and metric temperature. Now, I have switched the database unit retrieval method to Model.GetPresentUnits_2() which separates the units individually.

Checklist:

  • My pull request follows the guidelines in the Contributing guide?
  • My pull request does not duplicate any other open Pull Requests for the same update/change?
  • My commits are related to the pull request and do not amend unrelated code or documentation.
  • My code follows a similar style to existing code.
  • I have added appropriate tests.
  • I have updated or added relevant documentation.

References

@connorivy connorivy changed the title Fix(Csi): use updated method to retrieve document units CNX-9441-ETABS-to-Revit-Scaling-Issue May 13, 2024
@connorivy connorivy merged commit 630df49 into dev May 14, 2024
32 checks passed
@connorivy connorivy deleted the csi/connor/fix-unit-retrieval branch May 14, 2024 14:44
@bjoernsteinhagen bjoernsteinhagen mentioned this pull request Jul 16, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants