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:(Navisworks): progress bar should have a maxium value of 1.0 #2763

Closed

Conversation

jsdbroughton
Copy link
Contributor

closes: #2762

An occasional rounding error was causing some updates to the progress bar of greater than 100% (or over 1.0). This throws an error from the host application causing a failed conversion)

Changes:
For this hotfix, the Invoker method updating the progress UI has a Math.Max(fractiondone,1) shield.

TODO: Will revisit this as there are three different methodologies currently used to make traversal progress reporting - should adopt a single pattern

…calculation

- Update progress bar to use a maximum value of 1.0
- Fix calculation for fractionDone to ensure it does not exceed 1
@jsdbroughton jsdbroughton self-assigned this Jul 13, 2023
@jsdbroughton jsdbroughton added hotfix navisworks issues related to Navisworks labels Jul 13, 2023
@jsdbroughton
Copy link
Contributor Author

bound into #2766

@jsdbroughton jsdbroughton deleted the navisworks/hotfix/jsdb/partial-measurement-fail branch October 26, 2023 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotfix navisworks issues related to Navisworks
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

bug(Navisworks): progress measurement causing conversion failure
1 participant