• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

BGL Help

Messages
10
Country
romania
hi all,

is it possible when im in airport fs which BGL file using ? how can i learn this ?

i want to read from bgl files runway lat and lon..

thank you for all help
 
TCalcX when running with FSX will show you the folder and file for the area that you are in.

http://www.fsdeveloper.com/forum/showthread.php?t=4273

This would allow you to decompile the BGL file for data useage.

Alternatively, Airport Design Editor will also list folder and file, while giving you a visual display and ready access to airport information.

thank you very much for FSX okey for FS9 ?

i want to put this speciality to in my program..

regards
 
For FS9 you would need TCalc and AFCAD2. To read information in the Bgl files you will also need a program that can read the internal format for the files or create a program to do it for yourself
 
For FS9 you would need TCalc and AFCAD2. To read information in the Bgl files you will also need a program that can read the internal format for the files or create a program to do it for yourself

thank you for replay jon,
where i found that TCalc ? its free or payware ?
 
sorry my fault i forgot to copy dll in the modules,

this is delphi, how can i use this dll in c# ?
is this possible ?
 
Hi,

The source code is also included, you can see that the logic to determine the filename is quite easy.

But TCalc is for terrain scenery only, you will not get the BGL filename for the airport and runway on which you are currently.
 
And, of course, it cannot read airport information from a bgl file.
 
Hi,

The source code is also included, you can see that the logic to determine the filename is quite easy.

But TCalc is for terrain scenery only, you will not get the BGL filename for the airport and runway on which you are currently.

in this case not possible to read ... ?
 
Last edited:
Perhaps if you tell us a bit more about what you want to do then we can help. If you are looking to read bgl files and get information out of them then there are already some tools that do that. But maybe you are writing a program and you want to extract this information for yourself?
 
Perhaps if you tell us a bit more about what you want to do then we can help. If you are looking to read bgl files and get information out of them then there are already some tools that do that. But maybe you are writing a program and you want to extract this information for yourself?

ohh i forgot, yes im writting flight data recorder with c# normally i have database for runway information but yesterday night when im try to the program on fsx i saw someting wrong for runway lat and lon in that moment i use again Pete Dowson runway maker (great program) and re-create again one db for FSX but in that moment i think this not good way cuz if somebody using airport scenery and that lat and lon will change again. now im here and trying to understand how i will understand which BGL file are usign when im in airport, after next step will use bgl2xml command line version extract to temproary XML file and use lat lon from this file..

if have a another solution please tell me Jon
sorry if i use bad english :(

regards
 
So you need to create a database of the airports in FSX including any Addon airports and include the latitude and longitude of the runways ib that database?

And then your program will use that database based on where the user is? Or something diffent?

I think you are from Roumania and your English is much better than my Roumanian as I do not have one word!
 
So you need to create a database of the airports in FSX including any Addon airports and include the latitude and longitude of the runways ib that database?

And then your program will use that database based on where the user is? Or something diffent?

I think you are from Roumania and your English is much better than my Roumanian as I do not have one word!

thank you Jon :)
yes right. I want to create db for lat, lon.

what is your idea for this ?
 
If all you require is a list of lat/longs for the airport reference points, use CollectAirports.exe which is part of the TTools package available at Avsim.

George
 
To do it correctly you would need to read the scenery.cfg file to find all the scenery folders active in the users installation. In each folder read the bgl files and find the airport records. Then for each airport record found find the runway records and get the lat/lon for your database.

If you want to do it 'on the fly' then as you said in your first post you must find the bgl file containing the airport. However this is only practical for the stock airport files. You would not know where to find the airports that are added or modified.
 
To do it correctly you would need to read the scenery.cfg file to find all the scenery folders active in the users installation. In each folder read the bgl files and find the airport records. Then for each airport record found find the runway records and get the lat/lon for your database.

If you want to do it 'on the fly' then as you said in your first post you must find the bgl file containing the airport. However this is only practical for the stock airport files. You would not know where to find the airports that are added or modified.

understand Jon thank you for help, i will write here when i finished.

regards
 
Back
Top