• 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.

FSX Get Aircraft Length

Messages
45
Country
france
Hello !

A little question about the length of the aircraft.

A simulation variable exists to get this informations ?

For example AIRCRAFT LENGTH (in feet) ?

I know that this information is in the AIR file but hard to read.

Somebody has an idea ?

Thanks !

JardY.
 
That is a description of the aircraft.cfg file.
You can use SimConnect to retrieve the path to the .air file.
Once you have the path to the .air file, you know where the aircraft.cfg file is, so you can parse it, probably using GetPrivateProfileString().
I had a quick look this morning and it does not look like this entry is mandatory for actual aircraft. The description you refer to in the link also indicates that this entry is for carried objects in particular.

Doug
 
I don't think there is an entry for airraft length in either the FS9 or FSX .cfg files.
 
I don't think there is an entry for airraft length in either the FS9 or FSX .cfg files.

I dont claim to be an expert, but my ventures have never uncovered length of aircraft in any cfg file. Havent messed around in the air files much so idk about there
Only in the aircraft description have I ever seen the length, and thats in the aircraft.cfg file and the entry does not affect the model or any aspect of aircraft control of any type.

This is not to say its not there, just I have never come across it.
 
In the aircraft.cfg, in the contact points sections, look out for points of type 2. E.g. the Cessna 172


point.3 = 2, -3.90, -18.0, 3.00, 1800, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 5
point.4 = 2, -3.90 18.0, 3.00, 1800, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 6
point.5= 2,-20.23, 0.0, 0.30, 1800, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 9
point.6= 2, 1.48, 0.0, -2.17, 1800, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4
point.7= 2,-22.80, 0.0, 5.83, 1800, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 7
point.8= 2, -4.90, 0.0, -2.00, 1800, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 8
Focus on the points that have Lat = 0.0 (that's 6, 7, and 8). Pick the largest positive Longitudinal value (1.48 in 6), pick the largest negative longitudinal value (-22.8 in 7), calculate

1.48 + abs(-22.8) = 24.28 = length in ft.
(given that first value is positive, as it usually is, else abs(-22.8) - abs(xx))

Not fail safe, needs some kind of plausibility check, but an approximation...
 
In the aircraft.cfg, in the contact points sections, look out for points of type 2. E.g. the Cessna 172



Focus on the points that have Lat = 0.0 (that's 6, 7, and 8). Pick the largest positive Longitudinal value (1.48 in 6), pick the largest negative longitudinal value (-22.8 in 7), calculate

1.48 + abs(-22.8) = 24.28 = length in ft.
(given that first value is positive, as it usually is, else abs(-22.8) - abs(xx))

Not fail safe, needs some kind of plausibility check, but an approximation...

Hmm, never thought about it that way before but your right.
 
Back
Top