Documentation
IPS_SetParent
bool IPS_SetParent (int $ObjectID, int $ParentID)
Parameters
| ObjectID | The ID of the object |
| ParentID | ID of the new parent object |
Returns
If the function succeeds, it returns TRUE, otherwise FALSE.
Description
This function moves the object with the ID ObjectID below the object with the ID ParentID within the object tree. The object is visually subordinated to the parent object. The new assignment is visible in the logical treeview. By moving objects, the object tree can be modified to properly reflect the unity and/or functionality of various components.
The assignment of an object to a new parent object does not change the existing physical connections. It only provides a better representation.
If the object has an ident, no object with the same ident may exist at the new target position.
Example
IPS_SetParent(47381, 15361);