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

How to delete Misc Items?

Messages
14
Country
unitedkingdom
Hey,

I have excluded most items via my .BGL, file. However, there is still some misc. objects. I suspect Autogen has something to do with it? How do I remove them? See piccy. I am a newbie with scenery design, so please go lightly!

Thanks.

EGPH.XML said:
<?xml version="1.0"?>
<FSData version="9.0" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation="bglcomp.xsd">


<Airport
region="Europe"
country="Scotland"
state="The Lothians"
city="Edinburgh"
name="Turnhouse International"
lat="N55 57.00"
lon="W003 22.21"
alt="137"
magvar="4.0"
ident="EGPH">


<DeleteAirport
deleteAllApproaches = "TRUE"
deleteAllApronLights = "TRUE"
deleteAllAprons = "TRUE"
deleteAllFrequencies = "TRUE"
deleteAllHelipads = "TRUE"
deleteAllRunways = "TRUE"
deleteAllStarts = "FALSE"
deleteAllTaxiways = "TRUE"
deleteAllBlastFences = "TRUE"
deleteAllBoundaryFences = "TRUE"
deleteAllControlTowers = "TRUE"
deleteAllJetways = "TRUE"
/>

</Airport>
</FSData>
 

Attachments

  • FSX_MISC_OBJECTS.jpg
    FSX_MISC_OBJECTS.jpg
    97.5 KB · Views: 519
Last edited:
The first one from left can be removed by using exclusionRectangle with excludeLibraryObjects = "TRUE" (see "ExclusionRectangle" section in BGL Compiler SDK for further information). I don't recognize the other two: are these taxiway signs?
 
Last edited:
I assume that you intention is to remove this airport completely?

As suggested you need to try and exclusionRectangle to get rid of library objects. If there are taxiway signs then you should be able to remove these also by use of an exclusion rectangle
 
Thank-you, I searched the SDK and found the <ExclusionRectangle/> tag.

I compiled the code as below, no errors. Yet, I still see those objects, which are only a gas filling station and windsocks!. Am I doing something wrong, or is this not the way you meant?

My goal is to remove all traces of the FS Default scenery, and rebuild a fresh airport :)

Code:
<?xml version="1.0"?>
<FSData version="9.0" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation="bglcomp.xsd">


	<Airport
      		region="Europe"
      		country="Scotland"
      		state="The Lothians"
      		city="Edinburgh"
      		name="Turnhouse International"
      		lat="N55 57.00"
      		lon="W003 22.21"
      		alt="137"
      		magvar="4.0"
      		ident="EGPH">


      	<DeleteAirport
      		deleteAllApproaches = "TRUE"
      		deleteAllApronLights = "TRUE"
      		deleteAllAprons = "TRUE"
      		deleteAllFrequencies = "TRUE"
      		deleteAllHelipads = "TRUE"
      		deleteAllRunways = "TRUE"
      		deleteAllStarts = "FALSE"
      		deleteAllTaxiways = "TRUE"
      		deleteAllBlastFences = "TRUE"
      		deleteAllBoundaryFences = "TRUE"
      		deleteAllControlTowers = "TRUE"
      		deleteAllJetways = "TRUE"
	/>

	</Airport> 

	<ExclusionRectangle
      		latitudeMinimum = "N55.58"
      		latitudeMaximum = "N56.56"
      		longitudeMinimum = "W003.24"
      		longitudeMaximum = "W003.19"
      		excludeAllObjects = "TRUE"
	/> 
</FSData>
 
As soon as I posted above, I think I caught my silly error/

My Minimum values were bigger than my Maximum values. I corrected that, but now it will not compile. Any ideas? :o

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

F:\Software Development Kit(s)\Microsoft Corporation\Flight Simulator X\SDK\Envi
ronment Kit\BGL Compiler SDK>BglComp.exe EGPH.xml

Parsing document: EGPH.xml

INTERNAL COMPILER ERROR: #C2344: LongitudeMinimum MUST be less than LongitudeMa
ximum!
INTERNAL COMPILER ERROR: #C2031: Failed element parse <ExclusionRectangle>
INTERNAL COMPILER ERROR: #C2032: XML Parse Error! Element tree follows:

ERROR: <FSData
ERROR: version = 9.0
ERROR: >
ERROR: <ExclusionRectangle
ERROR: latitudeMinimum = N55.56
ERROR: latitudeMaximum = N56.58
ERROR: longitudeMinimum = W003.19
ERROR: longitudeMaximum = W003.24
ERROR: excludeAllObjects = TRUE
ERROR: >
ERROR:
INTERNAL COMPILER ERROR: #C2607: Compilation errors detected, compilation faile
d!


Parse complete!


F:\Software Development Kit(s)\Microsoft Corporation\Flight Simulator X\SDK\Envi
ronment Kit\BGL Compiler SDK>
 
You must "close" the element:


Code:
<ExclusionRectangle
latitudeMinimum = "N55.56"
latitudeMaximum = "N56.58"
longitudeMinimum = "W003.19"
longitudeMaximum = "W003.24"
excludeAllObjects = "TRUE"
[B][COLOR="Red"]/[/COLOR][/B]>
 
I am at a complete loss. When I compile with the Latitude/Longitude the correct way round - it fails to compile. When I try with the wrong way round, it compiles, but does not work. :mad:
 
I am at a complete loss. When I compile with the Latitude/Longitude the correct way round - it fails to compile. When I try with the wrong way round, it compiles, but does not work. :mad:

Well if it compiles then the data is the right way around for the compiler I would say. If the objects are still there then there are a couple of possibilities which come to mind

First the objects are not being removed by the exclude because they are not a type which the exclusion rectangle works on. For windsocks the code only removes those created using xml code (AFAIK) so if these are some type of object then they may not be removed.

Second there is the question of the order in which the code is called. Exclusion rectangles should always be the first thing in a bgl file (yours is last in your posted code). I don't think that matters in this case but it might in some other situation. Also the file containing the code has to be in the right place ( priority) relative to the file which contains the objects.

In which folder are you saving the bgl file you create?


Chances are that the default bgl contains the object but maybe not. If you can tell me which default bgl your airport is in then I can take a look inside it and see what objects are in there.
 
Last edited:
I am at a complete loss. When I compile with the Latitude/Longitude the correct way round - it fails to compile. When I try with the wrong way round, it compiles, but does not work. :mad:

The Latitude should be okay (for North), but internally West longitudes are negative, so probably they need to be the other way round. I expect Latitudes in the South would be the same -- the N S E W prefixes are merely substitutes for the missing signs.

Regards

Pete
 
Back
Top