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

Boundary Fences

Messages
132
Country
us-kansas
I'm still spinning my wheels on the fence issue. It would be great if I could use the code such as in the dissassembled BGLs that are default. What I got from that was as follows:

<BoundaryFence
profile="{C0224543-5D3F-4063-8DE4-CD6D0DE92650}"
instanceId="{B25D7FB7-ADFB-48BD-9536-3AE2873F9581}">
<Vertex lat="N39 4.25578" lon="W094 20.60914"/>
<Vertex lat="N39 3.89441" lon="W094 20.57070"/>
<Vertex lat="N39 3.88811" lon="W094 20.64760"/>
<Vertex lat="N39 3.80799" lon="W094 20.64101"/>
<Vertex lat="N39 3.80406" lon="W094 20.67110"/>
<Vertex lat="N39 3.74671" lon="W094 20.66579"/>
<Vertex lat="N39 3.74494" lon="W094 20.37034"/>
<Vertex lat="N39 3.79503" lon="W094 20.13259"/>
<Vertex lat="N39 3.85747" lon="W094 20.13865"/>
<Vertex lat="N39 3.86142" lon="W094 20.44421"/>
<Vertex lat="N39 4.26363" lon="W094 20.49078"/>
<Vertex lat="N39 4.25578" lon="W094 20.60914"/>
</BoundaryFence>

I tried to just insert this into an already existing and functional XML file and it caused numerous error messages. I think I'm going in the right direction but not quite on the right track. Help is appreciated.

Also, when FSX is loaded now and I load the Object Placer Tool the FSX screen goes black. It didn't used to. What gives?

Thanks,
 
You must know

You MUST mark the points in a sequence.
Use a graphical program, like afcad, to do that.

If you have the points correctly marked, to create a fence the code should be inserted in airport data.


I'm still spinning my wheels on the fence issue. It would be great if I could use the code such as in the dissassembled BGLs that are default. What I got from that was as follows:

<BoundaryFence
profile="{C0224543-5D3F-4063-8DE4-CD6D0DE92650}"
instanceId="{B25D7FB7-ADFB-48BD-9536-3AE2873F9581}">
<Vertex lat="N39 4.25578" lon="W094 20.60914"/>
<Vertex lat="N39 3.89441" lon="W094 20.57070"/>
<Vertex lat="N39 3.88811" lon="W094 20.64760"/>
<Vertex lat="N39 3.80799" lon="W094 20.64101"/>
<Vertex lat="N39 3.80406" lon="W094 20.67110"/>
<Vertex lat="N39 3.74671" lon="W094 20.66579"/>
<Vertex lat="N39 3.74494" lon="W094 20.37034"/>
<Vertex lat="N39 3.79503" lon="W094 20.13259"/>
<Vertex lat="N39 3.85747" lon="W094 20.13865"/>
<Vertex lat="N39 3.86142" lon="W094 20.44421"/>
<Vertex lat="N39 4.26363" lon="W094 20.49078"/>
<Vertex lat="N39 4.25578" lon="W094 20.60914"/>
</BoundaryFence>

Regards,

Jose
 
Fences, Fences, Fences

OK, do I create another XML file such as the one below? What errors exist? The airport data is directly copied from file created with BGLAnalyze from FSX file.


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

<Airport ident="KMKC"
region=""
country="United States"
state="Missouri"
city="Kansas City"
name="Wheeler Downtown"
lat="N39 7.39501"
lon="W094 35.56500"
alt="231.34M"
trafficScalar="0.70"
airportTestRadius="3000M"
magvar="355.00">

<Tower
lat="N39 7.38783"
lon="W094 35.90546"
alt="0.00M">
<SceneryObject
lat="N39 7.38783"
lon="W094 35.90546"
alt="0.0000M"
altitudeIsAgl="TRUE"
pitch="0.00"
bank="0.00"
heading="26.66"
imageComplexity="VERY_SPARSE">
<LibraryObject
name="{F3509EA4-5817-46A5-9CD3-EDA3C449F25C}"
scale="1.00"/>
</SceneryObject>
</Tower>

<BoundaryFence
profile="{C0224543-5D3F-4063-8DE4-CD6D0DE92650}"
instanceId="{B25D7FB7-ADFB-48BD-9536-3AE2873F9581}">
<Vertex lat="N39 4.25578" lon="W094 20.60914"/>
<Vertex lat="N39 3.89441" lon="W094 20.57070"/>
<Vertex lat="N39 3.88811" lon="W094 20.64760"/>
<Vertex lat="N39 3.80799" lon="W094 20.64101"/>
<Vertex lat="N39 3.80406" lon="W094 20.67110"/>
<Vertex lat="N39 3.74671" lon="W094 20.66579"/>
<Vertex lat="N39 3.74494" lon="W094 20.37034"/>
<Vertex lat="N39 3.79503" lon="W094 20.13259"/>
<Vertex lat="N39 3.85747" lon="W094 20.13865"/>
<Vertex lat="N39 3.86142" lon="W094 20.44421"/>
<Vertex lat="N39 4.26363" lon="W094 20.49078"/>
<Vertex lat="N39 4.25578" lon="W094 20.60914"/>
</BoundaryFence>


</Airport>
</FSData>


As always, suggestions are considered priceless!
 
Hi,

If you post your Airport file and an airport picture (jpg image) with a line following the points you want to put the fence, I can help you.

To examine the ponits you send is somehow difficult to me.

Regards,

José
 
Hi Eppright,

Is the fence code from the same airport as the airport code (KMKC) ? I suspect not.....

When I compile your .xml the error reported is that all your fence vertex co-ords are over 22km from the KMKC airport reference point and the KMKC airport has a test radius of 3km in your code.

Use your slew mode and TCalc_X to get the vertex co-ordinates for a fence around the perimeter of your airport scenery, substitute the co-ords in your code for the new ones around your airport scenery, re-compile and it should work.
 
That is puzzling. The coordinates exist in the XML file acquired using BGLAnalyze on the FSX KMKC file. Why would the difference exist?

I am anxious to get this formatting down since when I get MKC done, I want to start on Wichita. Unlike yesteryear, fences are a fact of post 911 life if realism is the goal. Thanks for your insights.
 
Jose & Alan,

Thanks for the help. Alan, when I went and checked coordinates they weren't even close. I inputted two coordinates from the airport to prove the concept and it worked. Now I can identify the many coordinates and have a fence building session. Now all I have to do is conquer a utility to place trees and shrubbery.

Your help is most appreciated.
 
Next question: Fence displayed is fine except it only 4 feet high. I tried to increase the scale in the XML file and it didn't grow an inch or centimeter. Is there a way to massage this or do I need to create new fence?
 
Ya got me there :( I've been trying to figure that one out for ages, no matter which guid I use, the fences all come out the same size and type, I've previously asked questions about how to get different fence heights (ie 2meter, 3 meter and 5 meter) but haven't got any answers as yet, maybe FSX only has one size implemented as yet ? Not sure really :confused: If you find out, please let me know ;)

You can place trees and shrubs etc with an .xml scenery object file and the neccesary GUID's, have a look at this link, all the vegetation GUID's are listed, just scale them to what you require:

http://lc0277.nerim.net/sceneobjects/
 
Next question: Fence displayed is fine except it only 4 feet high. I tried to increase the scale in the XML file and it didn't grow an inch or centimeter. Is there a way to massage this or do I need to create new fence?

Scale is in thickness (perpendicular to the polyline defining the footprint). If you have an extrusion that has any horizontal dimension to it scale will affect that.

This is a mechanism we use on ExtrusionBridges to scale the width of the roadbed for different lane widths.

-Doug
 
Thanks, got basic perimeter placed OK. Next problem is that I need to add auxillary fence sections. What do I do to add segments in the same XML file?
 
Back
Top