-
Notifications
You must be signed in to change notification settings - Fork 1
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
Added merging tolerance within LusasConfig to apply to both the comparers and the software #374
Added merging tolerance within LusasConfig to apply to both the comparers and the software #374
Conversation
…sas. Added method to set MergeTolerance in Lusas
Should change mergingTolerance to mergeTolerance. To stay consistent with previous change made |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with the script and it works changing the merging tolerance in Lusas.
Have commented some changes below to implement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes as discussed.
…NewModel and Open method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with Lusas v19, v19.1 and v20 using the test script.
Small change to give the m_mergingTolerance
a default value when it is initialised.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two changes to descriptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy with the changes, tested with the versioning script and test script.
Happy to accept that any internalised LusasConfig
objects will not version - as they previously only contained a string
for library settings, I highly doubt they were being used anywhere .
@BHoMBot check required |
@peterjamesnugent to confirm, the following actions are now queued:
|
@FraserGreenroyd can we get a neutral check on the versioning result please. There is a lot of Revit noise but one relevant to this PR:
Which is as intended due to the change from |
@BHoMBot check versioning |
@FraserGreenroyd to confirm, the following actions are now queued:
|
@BHoMBot check installer |
@FraserGreenroyd to confirm, the following actions are now queued:
|
As discussed offline, dispensation for versioning checks aren't available because if a versioning issue is merged, it will then report failures on every pull request we have. The issue here was caused by the branch on Versioning_Toolkit still existing (despite PR being closed) from when we were looking at upgrading the object. I've deleted the branch over there and it looks like that's now fixed the versioning issues here 😄 |
@BHoMBot check copyright-compliance |
@FraserGreenroyd to confirm, the following actions are now queued:
|
My changes were made so all happy from my side.
@BHoMBot check ready-to-merge |
@FraserGreenroyd to confirm, the following actions are now queued:
|
Issues addressed by this PR
Closes #315
Added a feature to set the Merge Tolerance.
The property is set in the LusasConfig. and the merge tolerance gets set when the adapter is activated.
Test files
Initialize adapter with and without LusasConfig.
Versioning test script. Start without building and inspect. Build and inspect upgrades.
https://burohappold.sharepoint.com/:f:/r/sites/BHoM/02_Current/12_Scripts/02_Pull%20Request/BHoM/Lusas_Toolkit/%23315-ModifyMergingTolerance?csf=1&web=1&e=Szf9WG
Changelog
MergeTolerance
to theLusasConfig
component. Added referance toGeometry_oM
inLusasConfig
to useTolerance
class for default value ofMergeTolerance
. Added description about the variable to the component.LusasConfig
, set a value for Merge Tolerance in Lusas upon opening a model with theLusasAdapter
.Additional comments
The default value is set to
Tolerance.Distance
.For testing of versioning it is needed to build the
Versioning_Toolkit
after building thisbranch
.