Hi Wim,
the solution is associated with two main factors:
- with FSUIPC you can load a flight;
- you can open a flight with a text editor and examine its contents;
By examining a flight, you find several sections, but the most important for the moment is one called [Plane.0] with something like this:
[Plane.0]
Aircraft=Beech Baron 58
If you create a file with only those lines and with a different a/c, when you load the flight it will change the a/c without changing anything else.
With this in mind, with your programing language, you can create a temporary file on disk, write those lines to the file, load the flight (aircraft) and then delete the file.
I use this on a program with a big timetable and aircrafts associated wih each flight; after choosing the flight, the user doubleclick the aircraft and load it.
I'm using VB6; if i can help in anything else...
Best regards
Armando Chibante