Document.NewCurtainSystem2
Description:
Creates a new CurtainSystem element from a set of face references.
Creates a new CurtainSystem element from a set of face references.
Remarks:
The faces can belong to different masses or generic models. The number of CurtainSystems will be equal to the number of masses and generic models.
The faces can belong to different masses or generic models. The number of CurtainSystems will be equal to the number of masses and generic models.
public ICollection<ElementId> NewCurtainSystem2(
ReferenceArray faces,
CurtainSystemType curtainSystemType
)
-
facesThe faces new CurtainSystem will be created on.
-
curtainSystemTypeThe Type of CurtainSystem to be created.
Return Value
ICollection<ElementId>
A set of ElementIds of CurtainSystems will be returned when the operation succeeds.
-
Thrown in following cases: The input argument faces or curtainSystemType isnullNothingnullptra null reference (Nothingin Visual Basic). The size of faces is zero.
-
Thrown when the CurtainSystem cannot be created, for example, the input faces don't belong to same mass or generic model. Or regenerate fails.
-
Thrown if the curtain system type does not exist in the given document.