> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionIso11783ILOPChangeChildLocation

[Open topic with navigation](../../../../../../CANoeDEFamily.htm#Topics/CAPLFunctions/ISO11783/ISOInteractionLayer/Functions/CAPLfunctionIso11783ILOPChangeChildLocation.md)

**CAPL Functions** » **ISO11783** » **ISO11783 Interaction Layer** » Iso11783IL\_OPChangeChildLocation

# Iso11783IL\_OPChangeChildLocation

[Valid for](../../../../Shared/FeatureAvailability.md): CANoe DE • CANoe4SW DE

## Function Syntax

```plaintext theme={null}
long Iso11783IL_OPChangeChildLocation( dword parentID, dword objectID, long dx, long dy ); // form 1
long Iso11783IL_OPChangeChildLocation( dbNode implement, dword parentID, dword objectID, long dx, long dy ); // form 2
```

## Description

The function moves an object. The object is moved relative inside the parent object. A **Change Child Location** command is sent to the Virtual Terminal.

## Parameters

* **parentID**: Parent object
* **objectID**: Object ID of the object which should be moved
* **dx**: Move X position relative by this value \[pixel]
* **dy**: Move Y position relative by this value \[pixel]
* **implement**: Simulation node to apply the function.

## Return Values

* **0**: Function has been executed successfully
* **\< 0**: An error has occurred, see [error codes](../../../CAPLfunctionsISOj1939ErrorCodes.md)

## Example

```plaintext theme={null}
// move object 5 pixels to the right
Iso11783IL_OPChangeChildLocation( 1000, 1200, 5, 0 );
```
