General HydroStatics
Ship Stability Software
Command of the Week
(New or interesting aspects of GHS that you may not know about)


Just when you think you've heard it all, a friend tells you that GHS can make a table with cells colored according to their values. You might reply, "Like conditional formatting in Excel? I'll believe it when I see it."

The command behind this feat is TEMPLATE /FILE. Instead of opening a dialog on screen, the /FILE parameter creates an image of the dialog. This image, like any other, can then be placed in a report file using the NOTE command (see COW012).

Here is the reformatted example table from COW184, which was on the topic of custom tables for "fancy" report styles.

Because the table source is a TEMPLATE which can be assigned colors using a macro, it is possible to color the cells based on the values within. Here is an example showing tank loads in SUBDIVY.GF.

So the next time you find yourself spending a lot of time formatting graphics containing data from GHS, ask yourself if the same graphic or something similar could be created directly by GHS instead. Then you can spend your valuable time perfecting the run file, instead of mindlessly formatting graphics.

Questions, comments, or requests?
Contact Creative Systems, Inc.

USA phone: 360-385-6212 Fax: 360-385-6213
Office hours: 7:00 am - 4:00 pm Pacific Time, Monday - Friday

Mailing address:
PO Box 1910
Port Townsend, WA 98368 USA

Click here for an index to this and previous COWs