Change the type of a curtain panel.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public Element ChangePanelType( Element panel, ElementType newSymbol )
Parameters
- panel Element
- The panel to be changed, it can be a type of Panel or Wall.
- newSymbol ElementType
- The new symbol, it may be of PanelType or WallType when the panel is hosted in a curtain wall. The new symbol can only be of type PanelType if the Panel is hosted in a curtain system.
Return Value
ElementIf operation succeeds, the modified panel element is returned.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown if the input symbol can't be used for the panel. |
InvalidOperationException | Thrown when the type change failed. |