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

Multiple conditions

Since Arno is using C#, he is probably reffering to Managed AI Waypoints sample
from FSX SDK. You can access it by opening the SDK, SimConnect topic, then in Table of Contents click Programming SimConnect Clients using Managed Code, then managed code samples, and find the sample.


I am using C++ code, with code based on C++ sample of the same general effect, although I think C# example is a window application while C++ is a console application. I wrote a dll module instead. You can download my somewhat commented source at http://sdrv.ms/VWJJNv (or at least I hope you can).

This one is also for a DC-3, and includes a repaint (it places a Czechoslovak Airlines aircraft at LKPR, in the same place the real one is)
 
Arno, you should probably split the topic discussion.

Now, back to the SimConnect endeavours.

I have now a module that successfuly shows and hides an object depending on visibility. At this time, this is done on request by button, but can be automated on a timer, for example.

At this time it also writes a log on every click, with:
-FSX Metar
-Whether the object was placed on click
-Whether the object was removed on click.
I enclose two pictures, object shown in bad vis, not shown in good vis, and the log.
 

Attachments

  • testObjectShown.jpg
    testObjectShown.jpg
    98.6 KB · Views: 514
  • testObjectHidden.jpg
    testObjectHidden.jpg
    119.9 KB · Views: 513
  • wxout.txt
    wxout.txt
    1.3 KB · Views: 502
As noted in the showroom, in development.
I could license the current version, but I'd rather not, as it would in effect result in lots and lots of DLLs, I'd rather end up with a single .exe and a single .dll in SimConnect and a set of definition files loaded by .exe.
 
Back
Top