Jump to content
The simFlight Network Forums

Load aircraft from an external aplication using FSUIPC


Recommended Posts

I've been tying to find a way of loading an aircraft using FSUIPC, but didn't find anything related with this; I came up with a solution that involves a creation of a file with a fictitious flight situation and then loading it using FSUIPC. It's working but I'd like to know if anybody knows of a different solution?

Best regards

Armando Chibante

Link to comment
Share on other sites

I've been tying to find a way of loading an aircraft using FSUIPC

Sorry, I don't know any way to do that other than by calling the Load Flight routine. In FS2004 there is a "reload aircraft" control which you could send via FSUIPC, but that doesn't change the aircraft, only reloads the current one (presumably to reset its systems or conduct repairs).

Regards,

Pete

Link to comment
Share on other sites

armando, i would like to know a bit more about your program ?

I presume you create separate flights with all your aircraft, and just load the flight then ? that way, you have loaded a different aircraft, and all you've got to do then, is change the long/latitude & clock at what it was before.

Maybe there's another way by sending keystrokes or something ? Kinda like a macro that goes trough the menus.

Cya,

Wim

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.