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

Using the Exclude Rectangle in MSFS 2020

rhumbaflappy

Administrator
Staff member
Resource contributor
Messages
5,125
Country
us-wisconsin
Use Replace Existing Airport. You are replacing an airport, or parts of it. Create is for an airport that doesn't exist in the sim, and has no ICAO id. The zip file is a complete project, Use it by itself for a start, or just study the elements to compare to another project.
 
Messages
6,728
Country
us-illinois
Hi Dick:

Just to clarify for Ken and others following this thread:

Yep. LightSupport needs to be nested in an airport structure, just like aprons. You don't need a full airport, but can have a stub, with an airport definition if that's all you want to change. If you wish to alter the runway-taxiway-parking construct, then you need to add that whole construct to the airport. You can't just add a single parking area. All those elements are linked together inside airport.

Some things can be added outside an airport, like Library objects or polygons or materials.

Attached is a stub for KBHM. I made it in ADE MSFS. I then deleted everything not needed for this stub in both the XML and the project folder setup. You can look at this to see how it's put together.

The ZIP file you posted above within this same thread:

https://www.fsdeveloper.com/forum/t...ude-rectangle-in-msfs-2020.455530/post-904092

https://www.fsdeveloper.com/forum/attachments/kbhm-correction-zip.82609/

[KBHM-Correction.ZIP]\KBHM-Correction\PackageSources\data\kbhm-airport.xml


...contains XML for only a "stub" KBHM airport with NO excludes.

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Created by Airport Design Editor (ADE) on 6/21/2022 -->
<FSData
    version="9.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="bglcomp.xsd">

    <Airport
        country="USA"
        state="Alabama"
        city="Birmingham"
        name="Birmingham-Shuttlesworth Intl"
        lat="33.5638888925314"
        lon="-86.7523057758808"
        alt="192.1M"
        magvar="3"
        airportTestRadius="10000.0M"
        altType="GEOID"
        isOnTIN="FALSE"
        onlyAddIfReplace="FALSE"
        applyFlatten="FALSE"
        starAirport="FALSE"
        closed="FALSE"
        groundMergingTransfertBright="0"
        groundMergingTransfertDark="0"
        ident="KBHM"
        >
    </Airport>

</FSData>


IIUC, the remainder of MSFS' default KBHM will still be rendered in MSFS at run time, because the "stub" contains no excludes for the other KBHM AFD elements otherwise loading from MSFS' default airport in:

[MSFS-2020_Packages install path]\Official\OneStore\fs-base-genericairports\scenery\0302\APX24200.bgl


However, the ADE 2020 project file *.apf in that same ZIP you attached above:

[KBHM-Correction.ZIP]\KBHM-Correction\KBHM-Correction.apf

...contains source code for XML to also generate the excludes typically used by ADE for creating a "stub" KBHM airport:

Code:
<Airport
   country="USA"
   state="Alabama"
   city="Birmingham"
   name="Birmingham-Shuttlesworth Intl"
   lat="33.5638888925314"
   lon="-86.7523057758808"
   alt="192.1M"
   magvar="3"
   airportTestRadius="10000.0M"
   altType="GEOID"
   isOnTIN="FALSE"
   onlyAddIfReplace="FALSE"
   applyFlatten="FALSE"
   starAirport="FALSE"
   closed="FALSE"
   groundMergingTransfertBright="0"
   groundMergingTransfertDark="0"
   ident="KBHM"
   >
   <Services>
   </Services>
   <DeleteAirport
      deleteAllApproaches="FALSE"
      deleteAllRunways="TRUE"
      deleteAllStarts="TRUE"
      deleteAllHelipads="TRUE"
      deleteAllFrequencies="FALSE"
      deleteAllTaxiways="TRUE"
      deleteAllAprons="TRUE"
      deleteAllApronLights="TRUE"
      deleteAllControlTowers="TRUE"
      deleteAllJetways="TRUE"
      deleteAllBoundaryFences="FALSE"
      deleteAllBlastFences="FALSE"
      deleteAllArrivals="FALSE"
      deleteAllDepartures="FALSE"
      deleteAllILSs="FALSE"
      deleteAllLightSupports="TRUE"
      deleteAllTerminalNDBs="FALSE"
      deleteAllPaintedElements="TRUE"
      deleteAllTaxiwaySigns="TRUE"
      deleteAllTerminalWaypoints="FALSE"
      />
   <ApronEdgeLights>
   </ApronEdgeLights>
</Airport>


...which, when loaded in ADE, generates this result in the ADE workspace:

ade_2020_alpha-21_hf5_msfs_dick_kbhm_corrrection_zip-jpg.82615



Thanks for your further clarification on this. :)

GaryGB
 

Attachments

  • ADE_2020_Alpha-21_HF5_MSFS_Dick_KBHM_Corrrection_ZIP.jpg
    ADE_2020_Alpha-21_HF5_MSFS_Dick_KBHM_Corrrection_ZIP.jpg
    145.2 KB · Views: 43
Last edited:
Messages
6,728
Country
us-illinois
Hi Ken:

Based on the info presented above by Dick and me, you should now have resources available to use for your KBHM project.

Dick's ZIP file cited / attached above within this same thread:

https://www.fsdeveloper.com/forum/attachments/kbhm-correction-zip.82609/

...is AFAIK more likely to be useful in MSFS' SDK DevMode GUI, as the sim will still be able to display the underlying MSFS default KBHM AFD elements when you load his MSFS SDK 'project' XML into DevMode GUI.


IMHO, the ADE *.apf file in Dick's ZIP when opened in ADE, is likely to require that you create the entire airport from scratch, or perhaps make non-AFD infrastructure object changes such as excludes etc., since Dick's ADE project file in that ZIP does not allow the underlying MSFS default KBHM AFD elements to display in the ADE workspace.


If at some point you wish to allow the underlying MSFS default KBHM AFD elements to display in the ADE workspace, you can do so via either of 2 methods.

1.) ADE Menu > File > Create Project from MSFS BGL File > (fill in requested info using MSFS' required naming syntax) > [Go]

(...browse to):

[MSFS-2020_Packages install path]\Official\OneStore\fs-base-genericairports\scenery\0302\APX24200.bgl

...or:

2.) Un-ZIP my ZIP file linked above into a folder chain, in ADE 2020 Alpha 21 HF5:

https://www.fsdeveloper.com/forum/attachments/kbhm-1970-km_backup-zip.82612/


You can then open a (entire) KBHM project via:

ADE Menu > File > Open Project > Browse / select / [ Open]:

[ADE2020_Alpha_21 install path]\F20\KBHM-1970-KM\KBHM-1970-KM.apf


Good luck with the learning process. ;)

GaryGB
 
Last edited:
Messages
836
Since you are struggling with the whole concept of airport alteration, You might be better off using a much less complicated airport to alter, just to get the sense of what is needed. I use C59 as a basic airport, just because it is so simple. Single runway, simple taxiway, a few parking areas. Something to keep in mind; the sim already has an airport there, but you need to make your own to replace the sim's.

Got it. I understand now why I need to build an Airport Project Package. You and Gary explained it very well. I will try that C59 airport.

Thanks, Ken.
 
Top