You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the default object (using the generic XML configuration) is a BHoMObject, the create fails. This is because T in CreateDefault<T>(IEnumerable<T> objects, XMLConfig config) is set to IBHoMObject following pre-processing by the base adapter as part of the Adapter workflow.
A workaround to check if the type is IBHoMObject and then set to the type of the first object resolves this.
The text was updated successfully, but these errors were encountered:
If the default object (using the generic XML configuration) is a BHoMObject, the create fails. This is because
T
inCreateDefault<T>(IEnumerable<T> objects, XMLConfig config)
is set toIBHoMObject
following pre-processing by the base adapter as part of the Adapter workflow.A workaround to check if the type is
IBHoMObject
and then set to the type of the first object resolves this.The text was updated successfully, but these errors were encountered: