Boundry Fence

#1
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
#2
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?
 
#3
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
#4
You are looking for Boundary which is different than BoundaryFence. Try looking for SceneryObjectType.BoundaryFence.
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
#6
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?
 
#7
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
#8
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.
 
#9
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