Feature: Optional scale and rotation arguments for SaveAsWexBim #559
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The SaveAsWexBim method already allowed for translation but not for an optional scaling and rotation.
The scaling has to be a scalar value because otherwise the value for OneMeter that is written to the file would be ambiguous.
The use-case here is that I want to scale a model to meters and re-apply the rotation (that I lost because I also need to set
adjustWcs: true
because it has a large offset placement and it's in millimeters) before I display it in the browser, together with other models.But it feels impossible to get a rotation and scale applied without a change in the library itself (or re-implementing the
SaveAsWexBim
logic myself)Basically what I want to do in my code is something along these lines:
Sorry, I totally missed the part in the contributor guidelines that I should create an issue first. After the work I put in the commit and PR description I thought I will try it with the PR (and this apology 🙏 ). That's my bad and if you want to gauge the interest with an issue first please let me know and I will close the PR and open an issue instead.