plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

swede001 avatar image
swede001 asked

SIMCONNECT_DATA_FACILITY_AIRPORT does not contain region

Hi again, sorry to disturb you with more questions!

It is very unfortunate that the SIMCONNECT_DATA_FACILITY_AIRPORT class does not contain the region. Since all the other navaids like SIMCONNECT_DATA_FACILITY_WAYPOINT, SIMCONNECT_DATA_FACILITY_NDB and SIMCONNECT_DATA_FACILITY_VOR inherit from it, we could get the region for all these facilities it is was there.

The problem is uniqueness. As I understand it, region + ident makes something unique. If you get a few vors using RequestFacilitiesList or SubscribeToFacilities and want to get more details about them, then you can call RequestFacilityData (or _EX1) but if you don't have the region you are not guaranteed to get a unique response.

Would it be possible to add region to SIMCONNECT_DATA_FACILITY_AIRPORT? Or is there a better way to achieve this? Since it is not possible to get all vors for example at once (which would be best!) like you can do with airports, you have to subscribe or search nearby vors and that search just return basic data so you have to make another call to the the details for each of them.

A related problem exists when you want to create a flight planning tool. You'll need all the items (vors, waypoints etc.) between origin and destination to be able to select a good route but you cannot get them in advance until you fly to them??? Is there a solution for that?

simconnect
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.