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

DB PutLoad and GetLoad
(Requires GHS version 17.00 or later)

(Use the command DB Update to get the latest version of the Data Base software.)

Load is here defined as a combination of a tank case and a fixed-weight case. The PutLoad command establishes a Load in the Data Base by referencing a tank case and a fixed-weight case:

DB PutLoad loadnumber, "loadname", "tankcase", "fixwtcase"

For example:
DB PutLoad 1, "No cargo", "Fuel & water only", 1
DB PutLoad 2, "Tuesday", 2, 2, "QuickLook"

To retrieve a load, only the load name or number is required:

DB GetLoad "loadname/number"

DB GetLoad without any parameter brings up a list of the loads that have been established:


Clicking on the load number button has the same effect as DB GetLoad for that load.

You noticed the macro name that was added on the second PutLoad. That causes the macro to be executed by the DB GetLoad command after the tank and fixed-weight cases are retrieved from the Data Base. For example,
DB GetLoad "Tuesday", "EN2"
(After the load name, parameters for the macro can be included.)

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

support@ghsport.com

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

www.ghsport.com

Click here for an index to this and previous COWs