Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SimConnect - how get Destination Airport Runway?

Featured Replies

Hi,

I have searched a lot but I cannot find one answer!

At the MSFS 2020 itself,  I create a Flight Plan where there are Departure Runway and Destination Runway and select Auto Pilot to follow the route.

The question is  :How I get the Destination Runway? If the whole Flight Plan is at the simulator to use the Nav  mode, Simconnect should know that Information

Thks

Luis

  • Commercial Member

If there is not simulator variable with this information, then you can't get it with SimConnect.

There isn't a lot of flight plan related information in the GPS variables, so I tend to process the flight plan file instead. But come to think of it, I don't believe that the even the file has the runway information.

Edited by Lorby_SI

LORBY-SI

Well I think it must be possible... I give all my PSXseeconTraffic aircraft a simple flight plan, consisting of Origin and Destination airport only, via SimConnect (SimConnect_AISetAircraftFlightPlan).

External program LittleNavMap is able to display the origin and destination in its window next to altitude, speed and so on, and to my knowledge the only way she can obtain that information from the Sim, is via SimConnect calls.

  • Author

Hi Lorby, as Kiek says I think it is possible  I found today an App called FS-FlightControl that has a dll called ABToolsSimConnect.I  As he retrieves the whole Flight Plan I can imagine that is bt Simconnect calls.

I know the GPS variables but only has Previous and Next Waypoints. Or the developer iterates and put (???)  the aircraft at  the Next Ids and with that he get all waypoints

  • Author

Lorby, you are right, the developer  has used the file

Kiek, quite interesting your PSXseeconTraffic I liked it!

  • Commercial Member
8 hours ago, kiek said:

Well I think it must be possible... I give all my PSXseeconTraffic aircraft a simple flight plan, consisting of Origin and Destination airport only, via SimConnect (SimConnect_AISetAircraftFlightPlan).

External program LittleNavMap is able to display the origin and destination in its window next to altitude, speed and so on, and to my knowledge the only way she can obtain that information from the Sim, is via SimConnect calls.

The OP was asking for a method to read the departunre/destination -runway- To my best knowledge, this information doesn't exist in the simulator variables. He is not creating aircraft, he wants to read the information from his own flightplan.

6 hours ago, Luis Novais Reis said:

Lorby, you are right, the developer  has used the file

That is the usual pattern. You get the name of the flight plan file from SimConnect, there are methods for that. Then you parse the file and extract the information that you need.

Which is also the reason why none of these external tools can read the flight plan from the FMC. The FMCs are usually self contained assets and don't create simulator flight plan files at all. The user must do that manually. They have to do that anyway, when they want to fly with ATC:

In MSFS additional information is available from the Javascript services. But naturally only from inside the sim, not for external processes. So you have to write a HTML/JS gauge asset or in-sim panel that retrieves the information and then transmit it to your main program in the outside world. Or create the whole thing as an in-sim panel in the first place.

Edited by Lorby_SI

LORBY-SI

1 hour ago, Lorby_SI said:

The OP was asking for a method to read the departunre/destination -runway-

Aha I see, my mistake. No, you are right,  the destination runway cannot be retrieved via SimConnect..

  • Author

Hi Lorby_SI, thank you very much. You gave me the clues to get something!;-)

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.