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

Dumping Timetable to Notepad

Messages
33
Country
us-california
Seems like a pretty straightforward thing to do. I want to print the Timetable from an existing Flight Plan. There's a nice button that says Dump to Notepad. I'm running Win10. Notepad works fine a dozen times a day for me. When I click Dump to Notepad, I get an unhandled exception error "Application not found".

I've searched the AIFP3 manual. I've searched this forum. No mention of this problem. Any help would be appreciated. AI newbie, but not a computer newbie.

Thanks

Eric
 
I can only confirm that "Dump to Notepad" from AIFP works on my PC running Windows 7 - I did it several times yesterday. Will await Don's comments.
 
No problem here either. What version of AIFP are you using? This function in AIFP doesn't call any application directly, so it must be a Windows thing" Have you substituted another application for Notepad? Please send me the details of the exception, i.e., click the details button. That will tell me where in the code the exception is being thrown.

Don
 
No problem here either. What version of AIFP are you using? This function in AIFP doesn't call any application directly, so it must be a Windows thing" Have you substituted another application for Notepad? Please send me the details of the exception, i.e., click the details button. That will tell me where in the code the exception is being thrown.

Don


Problem solved. You were right, Don. *.txt files were defaulted to Open Office instead of Notepad somewhere along the line. The Arrival and Departure.txt file was saved in the AIFP3/Work file, but wasn't opening in Notepad. I would have thought it would open in whatever had been selected for *.txt files, but apparently not. Not sure how it got changed, but I changed it back to default to Notepad and everything works as it should.

Thanks all for the prompt responses. As I said I'm an AI newbie, but exploring with AIFP3 has been extremely helpful. Clean presentation and nearly intuitive to use. I'm very happy with it.

If you want, I'll email you the Error details, just in case it's useful to you. I won't clutter up the forum with it. I'm using Version 3.2.02.

Eric
 
Nowhere does AIFP explicitly target Notepad. The process starts with the file extension. If Open Office was the default for .txt and it was "happy", you should not have received that error.

Don
 
Nowhere does AIFP explicitly target Notepad. The process starts with the file extension. If Open Office was the default for .txt and it was "happy", you should not have received that error.

Don
That's what I thought. When I read your suggestion that another app could have been substituted for Notepad, I double clicked on Arrivals and Departures.txt in AIFP/Work. It opened right up in Open Office with no problem. So I could save the timetables to Work, but only Notepad opens the timetable automatically when it is the default. Weird, but that seems to be the norm for Win 10. I'm pretty happy with Win 10 and have loaded it on all three of my PCs, but there's still a lot of hidden things around that cause strange problems that take some work to find.

Thanks again for the help, Don.

Eric
 
Don,

on this subject of Time Tables, I have just found this to be a useful tool when designing my airfields (what parking spots are required, etc.) but would it be possible to include the aircraft type in the listings?

Not a high priority but the listings would be so much more useful with this addition.
 
Ray, adding aircraft type would not be a big deal. The difficulty is real-estate. The timetables already occupy nearly the full width of hi-res screens.

If I knew specifically what additional information you would find useful (and why - I always like to understand the effect of what I am doing), I could, perhaps, provide that information in a less-obtrusive way, e.g., user option to substitute AC type for some other field, tooltip, etc. However, I am surprised aircraft titles - which are already displayed - aren't generally sufficiently descriptive to imply aircraft type.

Incidentally, there are two Timetable functions - one under the Flight Plans menu, the other in the Traffic and Parking Analyser. To which one are you referring (and, if the first, have you explored the full functionality of the T&PA?)

Don
 
Don,

thanks for responding. I will take another look at the 2 functions to see what they supply and come back after giving it some thought. I admit that the aircraft titles might get a bit obtrusive (in length that is).
Will come back with further musings.
 
Ray, adding aircraft type would not be a big deal. The difficulty is real-estate. The timetables already occupy nearly the full width of hi-res screens.

If I knew specifically what additional information you would find useful (and why - I always like to understand the effect of what I am doing), I could, perhaps, provide that information in a less-obtrusive way, e.g., user option to substitute AC type for some other field, tooltip, etc. However, I am surprised aircraft titles - which are already displayed - aren't generally sufficiently descriptive to imply aircraft type.

Incidentally, there are two Timetable functions - one under the Flight Plans menu, the other in the Traffic and Parking Analyser. To which one are you referring (and, if the first, have you explored the full functionality of the T&PA?)

Don

Ok, I have looked at both of the Time Table functions. The 1st one operates on the currently open set of flight plans whilst the 2nd allows us to look into all of our BGL traffic files and compile a complete Time Table for a selected airport. Otherwise I think that they operate in a similar way. Because I use many different BGL files for my AI traffic, it is the 2nd type I am currently using to try and produce interesting and useful timetables for airports that I am modifying as I make my way (flying of course) round the world.

When the Time Table has been generated, I use the 'Dump to Notepad' function to produce a 'text' version. Now, because I really want a time-sequenced arrivals and departures time table, I copy and paste this text into an Excel spreadsheet where, with a little manipulation, I can generate the type of file that I want and can print off. At the moment we get Time, FN, Reg etc which are good for me but it would be even better if we could have info regarding type of aircraft. I will attach a small Excel file that shows what I mean (hope you can open it successfully). The 2 extra columns contain "ATC type" and "ATC model" info which exists within the aircraft database in AIFP - I have added this manually here. Now I can see at a glance just what goes on at my airports.

Is there any possibility of adding this info? You suggest that 'aircraft titles' are already displayed - am I not setting something within AIFP that is giving me the aircraft info in the time tables?
The 'real-estate' situation that currently exists means that it is not possible to print out the time table as it appears on screen so any additional data would not affect this. It will still be easy to copy it into Excel (or whatever) and do subsequent manipulations to suit one's requirements.

Another question following on from here is, when the data is dumped to Notepad, is there any way of ensuring that, in this process, only one TAB is entered between each of the data entries in each of the schedule lines?
It is clear from when I get the data into Excel that, because columns do not line up vertically, there are different numbers of TABS being entered depending on the lengths of data in some of the columns. I will attach another file that I have not yet manipulated. This is not an 'end-of-the-world' problem but, if there is a solution it would save me some time.
 

Attachments

You suggest that 'aircraft titles' are already displayed - am I not setting something within AIFP that is giving me the aircraft info in the time tables?
I mistakenly referred to the FN column as aircraft title. As you note, aircraft titles are not displayed.
The 'real-estate' situation that currently exists means that it is not possible to print out the time table as it appears on screen
The "real-estate" situation to which I was referring was screen real-estate.
when the data is dumped to Notepad, is there any way of ensuring that, in this process, only one TAB is entered between each of the data entries in each of the schedule lines?
Probably not without major surgery. The timetable code is quite old (and yes, the T&PA timetable code is basically a copy of its Flight Plans menu based "sister"). Back in version 1 of AIFP, the timetable function did use a single tab for column spacing. However, I abandoned that approach since it necessitated custom tab stops which were not useable with many devices/applications (including Notepad) whereas virtually all devices/application support fixed tab stops. I have developed more recent code for generalized dumping of listview data to Notepad that pads with spaces - but retrofitting it wouldn't seem to solve your problem since you need tab-separated column-based data. What I MAY be able to do is add an option to dump with single tab spacing - but, of course, your Notepad display would not be "pretty".)

As noted, the timetable function is quite mature. You are the first to ask for the inclusion of this data, so I suspect it wouldn't be of sufficient value to most others to warrant the impact on screen real-estate. Further, while you initially asked for inclusion of "aircraft type", I note from your attachments that you have added both ATC_Type and ATC_Model to your listings. Most knowledgeable users could easily infer ATC_Type from ATC_Model. Also, given you intent, having the registration number doesn't seem particularly useful. So, what I propose is a small groupbox at the top of the timetable that allows the user to select display of either registration number or ATC_Model in the third column.

Don
 
Some good news. Upon exploring my code, I found three different instances of a module to output a listview control data to a file. I have now consolidated them and have one routine that will dump listview data to a file using as the separator:
  • a pad of spaces (primarily for Notepad),
  • a comma or
  • a tab character
Now, when you click a Dump to File button (previously Dump to Notepad), you are presented with a small dialog - initialized to dump to Notepad - but which will allow you to save the file in either csv or tab-separated format. Simply click Continue if you want to dump to Notepad.

Any thoughts on my earlier proposal for including ATC_Model?

Don
 
Don,

the "Dump to File" options look extremely good to me - brilliant discovery.

It would be interesting to know, from other users, just what happens after the on-screen time table has been generated. It cannot be printed out before it is 'Dumped' out and, even after dumping to Notepad it is too wide to print out - even in Landscape format. Is there a reason why the arrivals and departures are arranged in a left and right manner rather than one under the other? The second version would make life easier to make a readable/printable time table.

Yes I could live without the "ATC type" and probably lose the "Reg" if you don't want to keep it in.

If it is not too much work for you, I for one would welcome such modifications. Thank you as always for your efforts.

Ray
 
It would be interesting to know, from other users, just what happens after the on-screen time table has been generated.
Nothing, until the user does something.

Is there a reason why the arrivals and departures are arranged in a left and right manner rather than one under the other
Simply because that's the way I designed it (leaving screen depth to allow more data to be displayed.)

It cannot be printed out before it is 'Dumped' out
There is no print function for timetables because I didn't think it would be particularly useful. Once dumped for Notepad, however, it can be printed from Notepad.

The second version would make life easier to make a readable/printable time table.
The revised code dumps departures below arrivals as you suggest it should.

probably lose the "Reg" if you don't want to keep it in.
Perhaps user preferences have changed. However, in the "early day", Reg. No. was considered essential. All I propose to do is trade RegNo for ATC_Model when the user requests.

I should have something for you to test later this weekend.

Don
 
Don,

I am intrigued that no other users have come in here to make any comments. There must be others who make use of this clever facility? Extracting the data and formatting to produce a usable output looks like a complicated process to me so, as always, I look forward to your results.

Ray
 
Hi,

If you're asking for comments about the timetable and printout, I have a few. You are talking about making the printout more compact. First, in the printout you could eliminate the spaces between the SMTWTFS columns; they could be right up next to each other. If you want spaces, a single space between columns should be enough. If you still need less width, you could replace the city and airport name with the ICAO code, which is easy to look up. If you want to keep the name, limiting the entry to the city and ICAO code should be enough?

I often prefer the format used by AITM2 which is to list the arrivals and departures together, but I see that this approach that separates them also has its advantages.

Hope this helps,
 
I have just uploaded Development Release 3.2.02(b) to http://stuff4fs.com.

As noted yesterday, I consolidated all listing/printing of listview contents, including timetables, under a single dialog. In addition to the previous output to Notepad, you may now save directly to a file in either .csv or tab-separated formats. Timetables are printed as two tables, arrivals first and departures below.

I have also added significant flexibility to the use of the timetable under the Traffic and Parking Analyser. Now, you can choose to have any one of registration number, ATC model or parking types and radius in the column previously reserved for Reg No. As well, you may display airports as airport name, ICAO/IATA code or both.

In addition, now when you select an item in that timetable, the aircraft in the Aircraft List below is highlighted. Move the cursor to that aircraft and a tooltip containing aircraft characteristics is displayed.

Tom noted specifically and Ray implied a need to improve spacing in Notepad listings of timetables. I would very much like to do that but, alas, the simplicity of Notepad gets in the way. In order to have columns aligned exactly with Notepad's variable-width font, one MUST use tabs. Unfortunately, Notepad's tabs are preset at 8 spaces and are not adjustable programatically or otherwise. This isn't a major problem on screen, but printing is difficult.

Currently, there is no direct print function for timetables. Over the next few days, I will be experimenting with such a function. Hopefully, I will be able to exercise sufficient control over the printer to align columns exactly - closely-spaced. If not, I can always use a fixed-width font.

In the meantime, see what you think of the recent improvements.

Don
 
Don,

a perfect case of "if you don't ask, you don't get". Have tried your latest and it does as much as I hoped for and, possibly more. I couldn't ask for any other changes.

I can now achieve the style of Time Table as I want with so much less effort on my part. The Options allow me to generate the basic Time Table displaying Time, FN, Model, To, From and Days of Week as you suggested you would do. I can output this to a .csv file and open this in Excel to get a perfectly formatted Time Table. I can even repeat the process, this time with 'Reg', which, after again putting into Excel, allows me to add the registration marks as well.

I can now merge the Arrivals and Departures in Excel to sort the times into chronological order and thereby produce a neat Time Table of Arrivals and Departures at a given airport/airfield.

This now takes me far less time than it takes for AIFP to take in all of my BGL files and produce the necessary output data from which we choose what we want. I hope that any other changes you make will not affect what I can achieve from this latest development issue. Purrrrfect. :) :) :) Thank you again.
 
Development Release 3.2.02(c) - just released - allows smart-printing of timetable data without the intermediate step of saving to Notepad.

Don
 
Hi Guys, I have just found this post (been overseas for a few weeks so just checking through) and this is exactly the sort of functionality I was looking for as well!:-)
 
Back
Top