Datawave Marine Solutions
  • Dms Logo
  • Services
    • Vessel Design
      • Concept Design
    • Naval Architecture
    • Advanced Analysis
    • Marine Systems
    • Civil Engineering
  • Marine Operations
    • Passenger Vessels
    • Work Boats
    • Research Boats
    • Shipyards
    • Marine Startups
    • Waterway Maintenance
    • Autonomous Vessels
  • Portfolio
  • About Us
  • Resources
    • Blog
    • GHS Tutorials
    • FAQs
  • Contact
  • Menu Menu

GHS Tutorials: Macros and Scripting

GHS is nothing without macros.  They expand GHS into a repeatable and adaptable programming language.  They make all the frustration worth the effort.  The GHS user that masters macros can harness the full power of computer automation for stability and hydrostatics.  These free tutorials show you how.

810 Macros

Macros are the fundamental basis for scripting and automation in GHS.  Macros are the programming equivalent of functions.  They are a block of code that can be reused multiple times in the program, with only a single definition.  They can even have inputs.  This tutorial introduces the basic concepts of macros and how to use them in GHS.

820 Variables

This tutorial explains how to create and use variables in GHS.  Covers the two primary data types that get used for variables.

  • REAL variables
  • STRING variables

The tutorial also explains in detail how to use variables for basic mathematical operations in GHS.  This is fairly important because, unlike other programming languages, GHS does not respect order of operations.  You must be very careful to code your equations into GHS in the correct sequence to manually control the order of operations.  This tutorial provides an example of how to do that.

830 Flow Control

How to use GHS programming for flow control.  This includes creating loops and using if-then statements for basic decision capability.  Also provides a useful example of how to combine loops with if-then statements to automate a damage stability analysis.

840 Keyboard Shortcuts

Shows how to create custom keyboard shortcuts in GHS. This is the beginnings of creating your own user interface in GHS.  This tutorial allows you to create your own custom macros and then assign them to custom keyboard mappings.

850 GHS Templates

Templates in GHS are actually custom user forms.  A GHS template is like a macro.  But instead of defining a command sequence, you are defining a user form to extract user input.  This tutorial covers how to define those user forms.  Also covers some basic user input controls, including the following items.

  • Text
  • Variable inputs
  • Drop down lists
  • Part selections
  • Execution buttons
  • Buttons to close the user form

Share This Post

  • Share on Facebook
  • Share on X
  • Share on WhatsApp
  • Share on Pinterest
  • Share on LinkedIn
  • Share on Tumblr
  • Share on Vk
  • Share on Reddit
  • Share by Mail

More Like This

Seakeeper Clickbait

How a Seakeeper Works: Gyro Stabilization Explained

Fluid Dynamics, Fluid Loads, Fluids, Miscellaneous, Naval Architecture, Ship Motion Control
https://dmsonline.us/wp-content/uploads/2026/03/Clickbait.jpg 720 1280 Nicholas Barczak /wp-content/uploads/2025/06/DMS-logo.svg Nicholas Barczak2026-04-07 07:00:002026-06-01 10:09:14How a Seakeeper Works: Gyro Stabilization Explained
How to Buy a Towing Tank

How to Buy a Towing Tank: Purchase and Design Guide

Fluids, Fluids Special Methods, Miscellaneous, Towing Tank
https://dmsonline.us/wp-content/uploads/2025/08/Clickbait.jpg 720 1280 Nicholas Barczak /wp-content/uploads/2025/06/DMS-logo.svg Nicholas Barczak2025-11-11 07:00:002026-06-01 10:09:18How to Buy a Towing Tank: Purchase and Design Guide
050618 G 3721c 067

Surviving the Arctic: Polar Class Icebreakers

Design Support, Fluids, Mechanical, Propulsion, Special Purpose Mechanical Systems, Structural
https://dmsonline.us/wp-content/uploads/2023/12/USCGC_Healy_WAGB-20_north_of_Alaska-scaled-1.jpg 633 1200 Nate Riggins /wp-content/uploads/2025/06/DMS-logo.svg Nate Riggins2024-05-14 09:00:002026-06-01 10:09:22Surviving the Arctic: Polar Class Icebreakers
Mackinawice1

Ramming the Ice: Icebreaker Propulsion

Energy Generation, Fluids, Hull Structure, Propulsion, Propulsion Plant, Propulsion Units, Propulsors, Structural, Transmission and Propulsor Systems
https://dmsonline.us/wp-content/uploads/2023/12/MackinawIce1-scaled-1.jpg 883 1200 Nate Riggins /wp-content/uploads/2025/06/DMS-logo.svg Nate Riggins2024-03-19 09:00:002026-06-01 10:09:22Ramming the Ice: Icebreaker Propulsion
Mvaltairgeneralarrangementplan Smallresolution

How to Design a Ship

Arrangements, Hydrostatics, Mechanical, Piping, Structural
https://dmsonline.us/wp-content/uploads/2022/06/MVAltairGeneralArrangementPlan_SmallResolution.webp 299 640 Nate Riggins /wp-content/uploads/2025/06/DMS-logo.svg Nate Riggins2022-09-12 06:00:002025-09-30 07:31:20How to Design a Ship
Clickbait1 1.84.1

Stability Letters Explained

Fluids, Hydrostatics, Integration / Engineering
https://dmsonline.us/wp-content/uploads/2022/02/ClickBait1_1.84.1.jpg 1080 1920 Nate Riggins /wp-content/uploads/2025/06/DMS-logo.svg Nate Riggins2022-02-21 06:00:002025-08-15 13:17:02Stability Letters Explained
Seawise University Wreck

Free Surface Moment

Fluids, Fluids Testing, Hydrostatics, Stability Test
https://dmsonline.us/wp-content/uploads/2021/01/Seawise_University_wreck.jpg 1059 1412 Nate Riggins /wp-content/uploads/2025/06/DMS-logo.svg Nate Riggins2021-01-18 07:00:002026-06-01 10:09:25Free Surface Moment
Stability Test Pendulum Setup

Practical Stability Test: Naval Architect’s Guide

Fluids, Fluids Testing, Stability Test
https://dmsonline.us/wp-content/uploads/2021/06/PendulumSetup_500px.webp 422 500 Nate Riggins /wp-content/uploads/2025/06/DMS-logo.svg Nate Riggins2020-11-02 06:00:002026-06-01 10:09:26Practical Stability Test: Naval Architect’s Guide
Container Ship Just Exiting Port

Stability Test Theory

Fluids, Fluids Testing, Stability Test
https://dmsonline.us/wp-content/uploads/2021/06/container-ship-2893480_1920.jpg 924 1386 Nate Riggins /wp-content/uploads/2025/06/DMS-logo.svg Nate Riggins2020-10-19 06:00:002026-06-01 10:09:26Stability Test Theory
Previous Previous Previous Next Next Next

Categories

  • 3D Modeling
  • Arrangements
  • Auxiliary Systems
  • Command and Surveillance
  • Design Support
  • Drafting
  • Economics
  • Elastic Static Loading
  • Electrical
  • Energy Generation
  • Engineering Business
  • Equipment Integration
  • Fatigue
  • FEA / Numerical Methods
  • Fluid Dynamics
  • Fluid Loads
  • Fluids
  • Fluids Special Methods
  • Fluids Testing
  • Green Ship Design
  • Hiring Consultant
  • Hull Decks
  • Hull Structural Bulkheads
  • Hull Structure
  • Human Ergonomics
  • Hydrostatics
  • Insurance
  • Integration / Engineering
  • Legal
  • Marine Entrepreneurship
  • Masts, Kingposts, Service Platforms
  • Materials
  • Mechanical
  • Mechanical Handling Systems
  • Miscellaneous
  • Naval Architecture
  • Passenger Vessel
  • Piping
  • Production Engineering
  • Project Management
  • Propulsion
  • Propulsion Plant
  • Propulsion Units
  • Propulsor Shrouds and Ducts
  • Propulsors
  • Quality Assurance
  • Recreation
  • Regulations
  • Replenishment Systems
  • Resistance
  • Seakeeping / Fluid Structure Interaction
  • Shell and Supporting Structure
  • Ship Control Systems
  • Ship Maneuvering
  • Ship Motion Control
  • Ship Response
  • Shipyard And Support Services
  • Special Methods
  • Special Purpose Mechanical Systems
  • Special Purpose Structure
  • Stability Test
  • Structural
  • Support Services
  • Sustainable Marine Technology
  • Towing Tank
  • Transmission and Propulsor Systems
  • Unmanned Vessels
  • USCG
  • Vessel Design
  • Waterjet Propulsors

Our Socials

About Us

Ship designs tailored to your mission. Engineering that advances profits.

Dms Logo Negatives

What We Do

Vessel Design

Naval Architecture

Advanced Analysis

Marine Systems

Civil Engineering

Contact Us

(616) 504-1619

[email protected]

Website by Abstrakt Marketing Group ©
  • Privacy Policy
  • Sitemap
Scroll to top Scroll to top Scroll to top

This site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.

AcceptLearn more

Cookie and Privacy Settings



How we use cookies

We may request cookies to be set on your device. We use cookies to let us know when you visit our websites, how you interact with us, to enrich your user experience, and to customize your relationship with our website.

Click on the different category headings to find out more. You can also change some of your preferences. Note that blocking some types of cookies may impact your experience on our websites and the services we are able to offer.

Essential Website Cookies

These cookies are strictly necessary to provide you with services available through our website and to use some of its features.

Because these cookies are strictly necessary to deliver the website, refusing them will have impact how our site functions. You always can block or delete cookies by changing your browser settings and force blocking all cookies on this website. But this will always prompt you to accept/refuse cookies when revisiting our site.

We fully respect if you want to refuse cookies but to avoid asking you again and again kindly allow us to store a cookie for that. You are free to opt out any time or opt in for other cookies to get a better experience. If you refuse cookies we will remove all set cookies in our domain.

We provide you with a list of stored cookies on your computer in our domain so you can check what we stored. Due to security reasons we are not able to show or modify cookies from other domains. You can check these in your browser security settings.

Other external services

We also use different external services like Google Webfonts, Google Maps, and external Video providers. Since these providers may collect personal data like your IP address we allow you to block them here. Please be aware that this might heavily reduce the functionality and appearance of our site. Changes will take effect once you reload the page.

Google Webfont Settings:

Google Map Settings:

Google reCaptcha Settings:

Vimeo and Youtube video embeds:

Accept settingsHide notification only