How to create a Waypoint and DirectTo in C#, not possible

NOW I just need to be able to set a DIRECT TO Waypoint and I’ll be near completion of my application.

C# I’m using the MSFS stock A320 and the C172 G1000.

I am able to read the list of waypoints, destination airport and destination runway, but when I do a goaround (and other times) I need to set a waypoint and DIRECT TO function. Can I do this with an EVENT?

I have GPS IS DIRECTTO FLIGHTPLAN set but need to set the waypoint for it

NOTE:
I HAVE FOUND this in the docs but It is for an AI aircraft

I tried to use this, without result?

DOCS HAVE THIS
Specifies the ID of the Microsoft Flight Simulator object that the data should be about. This ID can be SIMCONNECT_OBJECT_ID_USER but that is undefined in my app

so I tried

SimConnect.SIMCONNECT_OBJECT_ID_USER with no result

QUOTE
to send data in an array, copy the array to a polymorphic object array. For example, to apply a waypoint list to an AI aircraft, go through the following steps using C#:

simconnect.AddToDataDefinition(DEFINITIONS.1,"AI WAYPOINT LIST", "number", SIMCONNECT_DATATYPE.WAYPOINT, 0.0f, SimConnect.SIMCONNECT_UNUSED);

o send data in an array, copy the array to a polymorphic object array. For example, to apply a waypoint list to an AI aircraft, go through the following steps using C#:

simconnect.AddToDataDefinition(DEFINITIONS.1,"AI WAYPOINT LIST", "number", SIMCONNECT_DATATYPE.WAYPOINT, 0.0f, SimConnect.SIMCONNECT_UNUSED);

Object[] objv = new Object[waypoints.Length]; waypoints.CopyTo(objv, 0

simconnect.SetDataOnSimObject(DEFINITIONS.WaypointD

thanks

the answer: It is not possible to set a new Waypoint programmatically using simconnect