Skip to main content
Open topic with navigation CAPL Functions » ISO11783 » ISO11783 Interaction Layer » Iso11783IL_OPChangeChildPosition

Iso11783IL_OPChangeChildPosition

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long Iso11783IL_OPChangeChildPosition( dword parentID, dword objectID, long x, long y ); // form 1
long Iso11783IL_OPChangeChildPosition( dbNode implement, dword parentID, dword objectID, long x, long y ); // form 2

Description

The function changes the absolute position of an object inside its parent object. A Change Child Position command is sent to the Virtual Terminal.

Parameters

  • parentID: Parent object
  • objectID: Object which should change its position
  • x: Absolute X Position inside the parent object
  • y: Absolute Y Position inside the parent object
  • implement: Simulation node to apply the function.

Return Values

  • 0: Function has been executed successfully
  • < 0: An error has occurred, see error codes

Example

Iso11783IL_OPChangeChildPosition( 1000, 1200, 10, 10 );