BoundaryConditions.IsValidHostId
Description:
Checks if the provided host id can host a boundary conditions of the provided type.
Checks if the provided host id can host a boundary conditions of the provided type.
public static bool IsValidHostId(
Document doc,
ElementId hostId,
BoundaryConditionsType type
)
-
docThe document containing both the host and the boundary conditions.
-
hostIdThe id of the analytical element that is about to host a boundary conditions.
-
typeThe type of the boundary conditions that is about to be hosted.
-
A non-optional argument was null
-
A value passed for an enumeration argument is not a member of that enumeration