-
Notifications
You must be signed in to change notification settings - Fork 15
Handling of host information refined, support for FamilyInstances hosted on linked elements plus ToRevit convert for Architecture.BuildersWork.Opening added #1127
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
Conversation
…be available for both convert and update
…tId on RevitHostFragment changed to string LinkDocument, code aligned to work with the changes
@BHoMBot check serialisation |
@FraserGreenroyd 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.
Tested on different Revit versions with success 👍
@BHoMBot check null-handling |
@pawelbaran to confirm, the following checks are now queued:
|
@FraserGreenroyd what is the chance the null-handling check is simply wrong? Or could we make it at least return an informative message? I was scrolling through the entire chain of PRs a few times and feel like another hour can be used more efficiently than doing this yet another time... |
@BHoMBot check null-handling |
@FraserGreenroyd to confirm, the following checks are now queued:
There are 4 requests in the queue ahead of you. |
FAO: @FraserGreenroyd The check they wish to have dispensation on is null-handling. If you are providing dispensation on this occasion, please reply with:
|
@BHoMBot check required |
@pawelbaran to confirm, the following checks are now queued:
|
FAO: @FraserGreenroyd The check they wish to have dispensation on is project-compliance. If you are providing dispensation on this occasion, please reply with:
|
FAO: @FraserGreenroyd The check they wish to have dispensation on is null-handling. If you are providing dispensation on this occasion, please reply with:
|
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.
LGTM 👍
@BHoMBot check null-handling |
@FraserGreenroyd to confirm, the following checks are now queued:
|
@pawelbaran just to let you know, I have provided a |
@pawelbaran just to let you know, I have provided a |
FAO: @FraserGreenroyd The check they wish to have dispensation on is project-compliance. If you are providing dispensation on this occasion, please reply with:
|
@pawelbaran to confirm, the following checks are now queued:
There are 3 requests in the queue ahead of you. |
@BHoMBot this is a CI/CD instruction. I am authorising dispensation to be granted on check ref. 4358521994 |
@FraserGreenroyd I have now provided a passing check on reference |
@BHoMBot check ready-to-merge |
@FraserGreenroyd to confirm, the following checks are now queued:
There are 4 requests in the queue ahead of you. |
NOTE: Depends on
BHoM/BHoM_Engine#2705
BHoM/Versioning_Toolkit#179
Issues addressed by this PR
Closes #990
Closes #1012
Test files
PR-specific tests on SharePoint:
Pull
Push
andPull
Push
andPull
The above tests are meant to become the new versions of standard Alpha test files. Additionally PerformanceTest verifies the execution speed of geometrical search, which seems to be quite satisfying.
On top of the above, verifying UpdateType from the standard test library is recommended.
Changelog
ToRevit
convert method forBH.oM.Architecture.BuildersWork.Opening
addedRevitHostFragment
introduced to consistently store the information about host Id as well as its original document in case when it is a linkRevitIdentifiers
refined to reflect the changes in handling of host/link informationFindHost
andContainingElement
methods added to enable geometrical search for host elementsCreate.FamilyInstance
refined to accept host elements from linked modelsModify.SetLocation
refined to support host elements from linked modelsLinkInstance
queries refined to support the above changesHostId
query replaced withHostInformation
to return both Id and document infoSetType
method cleaned upAdditional comments
This is a massive PR, but was hard to split into smaller ones taken the mutual relationships between most changes - I will provide as many tests as possible to ease the pain of the reviewers.
There is one breaking change -
HostId
property has been removed fromRevitIdentifiers
fragment and moved toRevitHostFragment
, but the values are not going to be copied over - this is because this would require versioning of allIBHoMObjects
, which I guess would be super heavy.@kayleighhoude @enarhi, among the test files there is a sample showing workflow with parameter and family mapping, which allows for pulling elements of wide categories (e.g. Generic Models or Mechanical Equipment) and mapping them to particular BHoM types incl. transfer of parameters to properties - I believe this is going to be neat!
@ssiimmoonnee the concept of host search could be helpful in e.g. finding hosts for windows/doors - happy to pick this up in the next PRs!