2024 Method
Changes 0
M

Element.ChangeTypeId

Description:
Changes the type of the element.
Remarks:
In rare cases, applying a change in type will result in a new element being created. The only active examples of this are when applying a normal wall type to a curtain panel, or converting such a wall back to a curtain panel. In this situation the new element id is returned. Also, this element becomes invalid. See also: IsModifiable.
Overloads (2):
ChangeTypeId(ElementId)
public ElementId ChangeTypeId(
	ElementId typeId
)
Return Value ElementId The new element id if new element is created, or InvalidElementId if the element's type changed without creating a new element.