boolean IPS_SetParent (integer $ObjectID, integer $ParentID)
|ObjectID||The ID of the object|
|ParentID||ID of the new parent object|
|If the command succeeds, it returns TRUE, otherwise FALSE.|
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 equal ident is allowed at the new target position.