Get current AIRAC

Is it possible to get the current AIRAC cycle using simconnect (cycle
identifiler or date period)?

If you are able to decompile bgl-files (the propriatary scenery data format that MSFS uses) you can the AIRAC-cycle from the fs-base-nav package located in the following file path (if installed as Xbox-app):

%LOCALAPPDATA%\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache\Packages\Official\OneStore\fs-base-nav\scenery\world\AIRACCycle.bgl

Hi, thanks, yes I’m already doing that but my concern is that those BGL files are not available on all platforms or might even be gone in a future update . The BGL format is as far as I know, not documented by Microsoft and it feels better to use documented APIs but a few things are still missing in SimConnect, for example AIRAC and airspaces.

The actual BGL format is not documented, but the XML you write to pass into the bgl packager is documented (by an XSD included in the SDK). It defines an xml type for the AIRAC cycle, so I’d assume it to remain part of the BGL in the future.

Maybe you are right but they might decide to compile those XML files into something else in the future. I have always wondered why they don’t put the AIRAC in the cloud but maybe they are afraid of breaking backward compatibility with a lot of stuff, who knows. Anyway, in my opinion it is bad practice to use undocumented functionality.

There is FLIGHT NAVDATA DATE RANGE, string, but it is a GameVar, not an A:Var.

Looks like this parses it and fixes some problems: Class: AiracUtils | MSFS Avionics Frameworks and Instruments

Or get it directly from FacilityLoader.getDatabaseCycles(), which seems like the normal path.

1 Like