• 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 Possible to programmatically place scenery objects using Simconnect

Messages
5
Country
ireland
Hi,

I was to develop a module that places scenery objects when a button is clicked. Is this possible? From skimming through the SDK, I see that there is a BGLCompiler tool but I don't think this will do as that obviously involves compiling.

Thanks in advance,
John
 
A bit more detail please? I assume this is 'real time' Is you program module intended to run inside FSX so the button is on a panel or external. Is it the same object each time?

So is the object to appear in FSX as soon as the button is pressed?
 
A bit more detail please? I assume this is 'real time' Is you program module intended to run inside FSX so the button is on a panel or external. Is it the same object each time?

So is the object to appear in FSX as soon as the button is pressed?

Sorry for the lack of detail.

This is really a proof of concept as I have no Fs dev experience and am just experimenting. I code with .net c# as a profession so would like to stick with that technology if possible.

The aim is to keep things simple. I just want to create a simple module or gauge with one button that hides or displays a scenery object in real time. Let's assume it is always the one building at the same airport.

Thanks!
 
Unless something could be done with the missions engine then I would not know how to do it. Placement of objects in FS is done via an XML source that is compiled and placed in FS. Generally this would involve re-loading the scenery to get it to display. In most cases refreshing the scenery would result in the display restarting I think.

There are tools such as Instant Scenery that give the appearance of real time placement - but to make the objects 'stick' the compiling process needs to take place.

As mentioned above I know it is possible to display objects using the missions engine and that might be a way forward.

In sim chances are that you would need to use C++. I develop for FS using C# but it is not really an option for working in-sim. I am not at all sure that FS would understand a managed dll file. In fact I would say that it would not.
 
Thanks once again for your reply Jon.

Can you tell me more about the instant scenery? I did not think compiling in sim could work like that so that's why I excluded it as an option.

I'm essentially trying to give control of the scenery object placement to a module, gauge, or external Application if possible.
 
Hi,

SimConnect can only place objects that are in the SimObjects folder of FSX. What the WishPlacer tool does it make an entry there for each library object, after that you can place them in FSX with SimConnect.
 
Someone on the forun created a gauge/dll which placed objects in front of the user aircraft from which he produced some sort of terrain profile.
 
Same concept refered to on both posts, but it's not the same code. The one I refered to and have seen has never been released publicly, as far as I know.
 
Back
Top