-
Notifications
You must be signed in to change notification settings - Fork 15
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
Revit_Engine: add Revit-specific Diffing method #1106
Conversation
This test code is still useful to keep on branch as it may turn useful in the future. It was a fully working solution, only less elegant than the current one that leverages delegates and reflection.
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.
By reading the code I have only found minor issues (see the comments), plus the compliance check will fail for sure.
On top of that, I cannot test the PR without a Revit file to pull from: it would be good to have a general example, plus possibly one with pulled parameter name equal to BHoM object property name - which will then be used for diffing?
Co-authored-by: Pawel Baran <[email protected]>
As from our chat, there is Revit file provided (actually 2), see PR Test Files section. Fixed the rest of changes requested. |
@pawelbaran to confirm, the following checks are now queued:
|
@BHoMBot check required |
@alelom to confirm, the following checks are now queued:
There are 32 requests in the queue ahead of you. |
@alelom fix requested for project compliance. The errors with the CSProject ( I will apply the fixes to every case detailed on the checks tab with the exception of any references to the target framework. I am unable to provide fixes to the Target Framework automatically, these will need to be performed manually. If you want to perform the fixes in a different manner please resolve this manually and rerun the check. If you are happy for me to go ahead and perform this action, please reply with:
|
@BHoMBot check null-handling |
@alelom to confirm, the following checks are now queued:
|
@BHoMBot check null-handling |
@alelom to confirm, the following checks are now queued:
|
@BHoMBot check required |
@alelom to confirm, the following checks are now queued:
|
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.
Re-re-approving - comments as before 😉
FAO: @FraserGreenroyd The check they wish to have dispensation on is project-compliance. If you are providing dispensation on this occasion, please reply with:
|
@BHoMBot this is a CI/CD instruction. I am authorising dispensation to be granted on check ref. 3885280773 |
@FraserGreenroyd I have now provided a passing check on reference |
@BHoMBot check ready-to-merge |
@alelom to confirm, the following checks are now queued:
|
@FraserGreenroyd to confirm, the following checks are now queued:
|
NOTE: Depends on
BHoM/BHoM_Engine#2647
Issues addressed by this PR
Closes #1105
Added a
Diffing()
method in Revit_Engine that simply does some needed objects pre-processing before callingBH.Engine.Diffing.DiffWithFragmentId()
, which does the actual diffing.This pre-processing simply allows the Revit Parameters to be considered as properties of the object. Hence, an user of the diffing can specify Revit parameter names into
DiffingConfig.PropertiesToConsider
orDiffingConfig.PropertyExceptions
as they were properties.This method is also automatically invoked by the base method
IDiffing
if objects from the Revit namespace are detected.Test files
https://burohappold.sharepoint.com/:f:/s/BHoM/Enre0HWKOkBHm-eUfHv9z5ABgzfiWOI-25ZZf9pPvZpnfg?e=G6jXA6
Changelog
Additional comments