Template Command Tutorial
1. Introduction 2. Basic Template Structure 3. Variables, Fields, and Run Files 4. Example Run File
Maintained by Creative Systems, Inc.,Creators of GHS.
Click here for information about GHS and other fine marine software.
Template Command Tutorial: Page I
This GHS tutorial will provide a basic understanding of the TEMPLATE command by defining and developing three basic templates. The first template covers the basic command syntax, the second template defines basic body and display option parameters, and the third template defines and interacts with variables through the template.
Templates are a layout for text and dialogue boxes, designed to present information, collect input data, and control the execution of other templates and macros by using a controlled, custom format. The creator of the template can control the method for which data is entered, provide more structure and uniformity to projects, display help fields for assisting users with complex commands or data input fields, and develop complex macros, variables, etc, while implementing them with simple execution options.
WIZARDs are very intricate and complex macro systems centered around templates. You can see examples of these if you select one of the wizards from the WIZARD menu at the top of the GHS screen.
If you are not familiar with run files, macros, and variables, you may find information about them in the GHS User's Manual or by looking up the following commands in the Help Menu: MACRO, VARIABLE, EXECUTE, SET. There are a myriad of other commands you can use with the TEMPLATE command, but knowing these will provide the greatest insight to utilizing and developing templates with GHS. You can access the HELP menu through the HELP menu at the top of the GHS screen, or you can type HELP and then the command you are looking for at the command prompt.
Creating templates in GHS is easy. You only need a name, a title, a template body, and a closing slash '/'. This is very similar to a macro. Also similar to a macro is the method for executing the command by placing a '.' at the beginning of the macro name or by using the EXECUTE command. Although you can create templates from the command line, it is strongly recommended you use a run file.
Template Command Tutorial: Page II
2. Basic Template Structure
3. Variables, Fields, and Run Files
4. Example Run File
Copyright (C) 2011, Creative Systems, Inc.