Reading/Sending MSFS Flight plan

Hello,

What are the options for a SimConnect or a WASM instrument to read the MSFS 2024 flight plan, as well as to send its own flight plan to MSFS?

Can such functionality be implemented into SimConnect?

Thank you.

Hello,

We will be providing an API both for JS instruments/panels/plugins and for WASM gauges/modules to be able to read and receive sim EFB plan, but it is not yet available in the current dev alpha build. We will update folks when the API and/or documentation becomes available.

Thanks,
Matt

4 Likes

Thank you Matt, as always much appreciated!

Hi Matt,

Because I am testing my MSFS 2020 airplanes with the DevAlpha I got, will the current dev alpha avionics (G3X) work to send / receieve FP to the MSFS EFB? just to avoid testing if this is not the case and tell my QA testers to skip that phase of the testing for now.

Thanks for the help,
Raul

Hi Raul,

MSFS 2020 did not have awareness of any sort of built in sim EFB and as such will not be able to send or receive to/from the sim EFB. The existing behavior for those avionics, where they load the ATC flight plan at the beginning of flight, will continue to work as it has in 2020.

The MSFS 2024 versions of these avionics (which we have labeled V2) are required to take advantage of new MSFS 2024 EFB communication features. We don’t have specific porting documentation at the moment as my understanding is that this alpha was mostly intended to provide 2020 aircraft compatibility feedback. However, we are compiling the documentation and will have in available in the coming weeks.

Thanks,
Matt

3 Likes

FYI the existing simconnect API allows the reading of the PLN file straightforwardly with:

// *********************************************************************************************************************
// ***************     OnRecvEventFilename                                          ************************************
// *********************************************************************************************************************
private void OnRecvEventFilename(SimConnect sender, SIMCONNECT_RECV_EVENT_FILENAME ev)
{
    switch ((SIMEVENT_ID)ev.uEventID)
    {
            case SIMEVENT_ID.FlightPlanActivated:
              string plan_file_name = ev.szFileName.ToString();
              // Discard the spoof events
              if (plan_file_name.ToLower() != ".pln" && !plan_file_name.ToLower().Contains("customflight"))
              {
                  load_pln_file(ev.szFileName.ToString());
                  ....
              }
              break;

    

This isn’t the ‘EFP’ output, or some other derived data. As the OP suggests, it’s the original information from the PLN which the EFP and any 3rd-party add-on can use.

Hello,

I believe what you’re referring to here is the EFB (Electronic Flight Bag). However, we have made no change to this API and it will continue to work as it has before, providing the path to the PLN file that was loaded.

Thanks,
Matt

Hello Matt,

Is there a possibility to extend the EFB Read/Write functions to SimConnect, as they are planned for WASM?

Hello,

We don’t presently have plans to add that for SimConnect, but it’s something we can look into seeing if there are resources to do that in a future update down the road.

Thanks!
Matt

Hello Matt,

Thank you for the explanation, totally understood.