Document.NewCurtainSystem2
Method
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.
Syntax
public ICollection<ElementId> NewCurtainSystem2(
ReferenceArray faces,
CurtainSystemType curtainSystemType
)
Parameters
Parameter | Type | Description |
---|---|---|
faces | ReferenceArray | The faces new CurtainSystem will be created on. |
curtainSystemType | CurtainSystemType | The Type of CurtainSystem to be created. |
Return Value
Type | Description |
---|---|
ICollection | A set of ElementIds of CurtainSystems will be returned when the operation succeeds. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown in following cases: The input argument faces or curtainSystemType is. The size of faces is zero. |
InvalidOperationException | Thrown when the CurtainSystem cannot be created, for example, the input faces don't belong to same mass or generic model. Or regenerate fails. |
ArgumentException | Thrown if the curtain system type does not exist in the given document. |