changeElementParent Method @beta
Deprecated in 5.11.0 - will not be removed until after 2026-08-04. Use EditTxn.changeElementParent instead, within an explicit EditTxn scope (or via withEditTxn). See EditTxn documentation for migration help.
Change the parent of an element.
changeElementParent(props: ChangeElementParentProps): void
@throws ITwinError if the operation fails.
| Parameter | Type | Description |
|---|---|---|
| props | ChangeElementParentProps | The properties specifying the element to reparent and its new parent. |
Returns - void
Defined in
- backend/src/IModelDb.ts Line 3243
Last Updated: 04 July, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.