It took me some time to figure out what are marker states and how they works since the documentation isn't very explicit on that. The simulation variables "Marker State" is missing in the SDK, but is needed to build appropriate data definitions.
So how it works:
And the result:
Various model elements are available (wheel, center of gravity, wing tips, engines, etc)
So how it works:
Code:
SimConnect_AddToDataDefinition(hSimConnect, DATA_ID, "Marker State", NULL, SIMCONNECT_DATATYPE_MARKERSTATE);
SIMCONNECT_DATA_MARKERSTATE ms;
strncpy(ms.szMarkerName, "Wheel", 64);
ms.dwMarkerState = 1;
SimConnect_SetDataOnSimObject(hSimConnect, DATA_ID, SIMCONNECT_OBJECT_ID_USER, SIMCONNECT_DATA_SET_FLAG_DEFAULT, 1, sizeof(SIMCONNECT_DATA_MARKERSTATE), &ms);
And the result:
Various model elements are available (wheel, center of gravity, wing tips, engines, etc)