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

Boundry Fence

Messages
34
Country
belgium
Hello,

I'm not able to access airport boundary fence node in main airport node. I can see BoundryFence object in enumareted objects (VB.NET) but when I create a loop with For Each for airport node, I'm not able catch Boundary Fence node.I can catch all the others like , start,runway,taxi,ndb etc....

I did check it also in SDE test application. I couldn't see it also. It seems that it is not decompiled. Is it true ?

Is it implemented ? If not will it be implemented ?

Thanks
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,853
Country
unitedkingdom
Hello,

I'm not able to access airport boundary fence node in main airport node. I can see BoundryFence object in enumareted objects (VB.NET) but when I create a loop with For Each for airport node, I'm not able catch Boundary Fence node.I can catch all the others like , start,runway,taxi,ndb etc....

I did check it also in SDE test application. I couldn't see it also. It seems that it is not decompiled. Is it true ?

Is it implemented ? If not will it be implemented ?

Thanks

I think I need a bit more information about what you are trying to do. Are you writing a VB.Net application? If so are you trying to decompile something or compile it or something else?
 
Messages
34
Country
belgium
Hi Jon,

Sorry for missing information.
Actually I'm working on a private project in order to gain experience in VB.Net and also create a planning application according to my needs.

So,in order to create necessary information for planing software, I'm using SDE in order to decompile bgl files and gather information which is needed.

Until now I was able gather , navaids, Apron, taxi, runway , intersection, waypoint and other necessary information.

Now also I would like to have vertex information of Airport Boundaryfence to draw it on my map. But I'm not able to access any boundryfence information under airport which should be in between <airport> </Airport> XML tags.

Here is my pieces of code :
Code:
Public Sub fnGatherAPData(ndAirport As ScruffyDuck.Flightsim.Scenery.SceneryObject.SceneryBase)

Dim ndSubItem as ScruffyDuck.Flightsim.Scenery.SceneryObject.SceneryBase

For Each ndSubItem In ndAirport.Items

            Select Case ndSubItem.Type
                Case ScruffyDuck.Flightsim.Enumerations.SceneryObjectType.Apron
                    AddAPRONtoSHP(ndSubItem)
                Case ScruffyDuck.Flightsim.Enumerations.SceneryObjectType.TaxiwayPaths
                    AddTXWYtoShp(ndSubItem)
                Case ScruffyDuck.Flightsim.Enumerations.SceneryObjectType.Waypoint
                    AddWYPtoSHP(ndSubItem)
                Case ScruffyDuck.Flightsim.Enumerations.SceneryObjectType.Marker
                    AddMRKRtoSHP(ndSubItem)
                Case ScruffyDuck.Flightsim.Enumerations.SceneryObjectType.Boundary
                    MsgBox("Fence")

            End Select

Here in this piece of code, I use Airport node and cycle through its' sub items and gather necessary information.

When I decompile a bgl file to XML file, I can see that Airport Boundaryfence information is present and is between <airport></airport> tags.

But neither I'm able to access it in VB.NET nor I can see this section in SDE test application.

Thanks for help

KAYA
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,853
Country
unitedkingdom
You are looking for Boundary which is different than BoundaryFence. Try looking for SceneryObjectType.BoundaryFence.
 
Messages
34
Country
belgium
I remarked that also after I post the message. I did already tried "BoundaryFence" but unsuccessful.
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,853
Country
unitedkingdom
Well I am not sure what to suggest. Are you saying that the case for BoundaryFence is never triggered? I assume you have placed a breakpoint there to check? Are you sure that the airport you are parsing does contain a boundary fence?
 
Messages
34
Country
belgium
Yep, The boundaryfence is not triggered.If it is triggered I should have seen FENCE messagebox poping up.I'm also decompiling entire AP bgl files for ASIA for testing. At least airport LTBA has BoundaryFence.

I also remarked that the SDE test application also doesn't decompile any fence attribute. Are you aware of it ?

Thanks.

EDITED By AUTHOR 02:00am

I figured out the problem. It seems that SDE is not capable to decompile BoundaryFence of FS9 BGL Files.
I just tried my application with FS10(FSX) installation and BoundaryFence is triggered without problem.
So would it be possible to check it ?


Thanks
 
Last edited:

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,853
Country
unitedkingdom
Yep, The boundaryfence is not triggered.If it is triggered I should have seen FENCE messagebox poping up.I'm also decompiling entire AP bgl files for ASIA for testing. At least airport LTBA has BoundaryFence.

I also remarked that the SDE test application also doesn't decompile any fence attribute. Are you aware of it ?

Thanks.

EDITED By AUTHOR 02:00am

I figured out the problem. It seems that SDE is not capable to decompile BoundaryFence of FS9 BGL Files.
I just tried my application with FS10(FSX) installation and BoundaryFence is triggered without problem.
So would it be possible to check it ?

That is because there are no boundary fences in FS9. They were introduced in FSX. You will not find any in FS9. Sorry I had thought you were working with FSX.
 
Messages
34
Country
belgium
Aaah,

Sorry for the trouble. Actually I was focused over FS9 more than FS10. So I did not remarked that the fence doesn't exist in FS9

Thanks.
 
Top