Closed alelom closed 3 years ago
I will not approve not to give a false impression that this PR has been tested extensively, but can confirm that Revit_Toolkit works perfectly fine on this branch.
Not sure whether it is fully relevant to this PR, but I have just raised #288 - being on this branch, I received a massive pushback from the users who were not able to extract any Ids without help. This tells me the UX will need further improvement once #284 is resolved.
Not sure whether it is fully relevant to this PR, but I have just raised #288 - being on this branch, I received a massive pushback from the users who were not able to extract any Ids without help. This tells me the UX will need further improvement once #284 is resolved.
See my reply there.
@BHoMBot check versioning
/azp run BHoM_Adapter.CheckInstaller
Would assume this would require versioning, some PreviousVersion attributes to both of the updated methods!
Thanks, actually only one method has been modified (AdapterId), the other (AdapterIds) is new. Will add versioning for it.
/azp run BHoM_Adapter.CheckInstaller
/azp run BHoM_Adapter.CheckInstaller
/azp run BHoM_Adapter.CheckInstaller
/azp run BHoM_Adapter.CheckInstaller
/azp run BHoM_Adapter.CheckInstaller
/azp run BHoM_Adapter.CheckInstaller
Replaced with https://github.com/BHoM/BHoM_Adapter/pull/290 due to:
Dependant PRs
Issues addressed by this PR
Closes #284 Closes #288
This PR revises the two methods that get the
AdapterId
of a specific fragment Type out of a given BHoMObject. Both methods are useful and need to be maintained, but due to the conflict explained in #284 they had to be renamed/revised.We have:
AdapterId(this BHoMObject, ...)
that returnsobject
. This gathers all IDs that implement a certain fragment type. If multiple IDs are found, a List is returned. If one Id is found, only that is returned.This method was renamed to
AdapterIds<T>(this BHoMObject, ...)
(note the s).<T>
. This method will return an error if multiple IDs are found. This method was slightly modified to expose more useful errors/warnings and better distinguish its function from the other one. The method was not renamed.There are only 2 Toolkits that requires alignment (SAP2000/ETABS) because they have a reference to the renamed method (1).
All other Adapter Toolkits needs to be tested to make sure that the functionality is still working as expected.
Test files
Needs testing of existing functionality on all Adapters.
Changelog
Additional comments