Aircraft checklists: Difference between revisions

Jump to navigation Jump to search
Line 79: Line 79:
Cut and paste this little code snippet in the Nasal console and excecute it:
Cut and paste this little code snippet in the Nasal console and excecute it:


var checklist="777-200-checklists.xml";
<syntaxhighlight lang="nasal">
var checklist_path=sprintf("%s/%s",getprop("/sim/aircraft-dir"),checklist);
var checklist="777-200-checklists.xml";
var data = io.read_properties(checklist_path,"/sim/checklists");
var checklist_path=sprintf("%s/%s",getprop("/sim/aircraft-dir"),checklist);
var data = io.read_properties(checklist_path,"/sim/checklists");
</syntaxhighlight>


Change the first variable to the name of the file you are editing.
Change the first variable to the name of the file you are editing.

Navigation menu