• 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 Remove a object from a bgl file

NGX

Messages
302
Country
germany
Hello!

I want to remove a object from a bgl file that includes 27 objetcs. Is there a simple way to do it?

I can open the bgl file with modelconverterX but how can I remove objects?


Thanks,
Holger
 
Hi Holger,

I would not remove the entire object from the BGL. I would only remove the placement code. If you remove the object, the placement will refer to a non-existing object.

To do that you would need to decompile the placement BGL to XML.
 
I agree with Arno. Why do you need to remove an object from a file?
 
Thank you for your help!

It´s because I want to install some FS9 sceneries (which do not exist as FSX versions) in the FSX. Mostly you have some problems doing that.

In this case I use my own modified stock AFCAD and the whole buildings from the FS9 scenery. All buildings are packed in one bgl. Unfortunately one building is standing on the main taxi way but the rest of the buildings are very well placed. So my idea was to simply remove the object as it is not so important.

Another idea would be to replace the object but I think it is even more complicated, isn´t it?

Thanks,
Holger
 
One more question :-)

I managed to covert the bgl to xml (bglX180 tool) file and I removed the placement code for the object.

How can I recompile the the libary again? I have the FSX SDK tools installed.

Thank you very much!

Holger
 
I wonder if a simpler way to do this would be tp place an exclusion rectangle where the object appears. That way you would not need to recompile the bgl file. You say you have a modified AFCAD. Did you create that with AFCAD2 or some other tool?
 
I already have tried a exclusion rectangle but it didn´t work due this is not a FSX or FS9 default object I guess.

I use AFX for AFCAD´s. Meanwhile I´m building a complete new AFCAD for the airport based on photoreal background.

I have a tool called Libary maker which is a part of the tool instant scenery. With this tool I can recompile the bgl but in this case I lost all geograhical informations of the objects :-(
Is there a better way to do that?

Thanks,
Holger
 
If it is a library object then an exclusion rectangle should work. It does not have to be a stock object.

Is it possible to get a copy of the files that you are working on?

I suspect this can be done in a tool such as ADE without having to hack the bgl file - which always makes me nervous :)

I am sorry if I am not answering the question about how to remove the placement code from a Bgl file. However the simple answer is that you need to pass it to the FSX BglCompiler. The hard way to do this is to drop it onto the compiler in windows. This may work but if you have an error then you might not see it. an alternative would be to use Xml2Bgl - one of my tools or Arno's Compiler Helper tool.
 
Thank you Jon,

I think its not possible to give you a copy of the file as it is a FS9 Payware which I want to make compatible with the FSX ;-)

I will retry the exclusion rectangle method, probably I did a mistake ...


Thanks,
Holger
 
Thank you Jon,

I think its not possible to give you a copy of the file as it is a FS9 Payware which I want to make compatible with the FSX ;-)

I will retry the exclusion rectangle method, probably I did a mistake ...


Thanks,
Holger

OK - in that case be aware that you may be infringing their copyright be decompiling and recompiling the bgl file.

An exclusion is certainly the best method but make sure that the exclusion file is loaded in FSX AFTER the original file containing the object you want to exclude. If you don't then the exclusion is excluding thin air ;)
 
Back
Top