GHS BULLETIN
Building a SWATH
01/1991
Part Maker is capable of assembling components into complex models. The
following example is a run file which builds a SWATH starting from two files,
STRUT.GF and HULL.GF which contain single-component models of the strut and the
pontoon hull, respectively (both are assumed to be symmetrical about their own
centerplanes). It is assumed that the part name on each file is HULL so that
one of them will have to be renamed before the other file is read.
The techniques demonstrated here can be extended to much more complex
situations.
READ STRUT.GF `This file contains one strut as a part named HULL.
CREATE TEMP `In order to avoid a part name conflict we now effectively
CLASS HULL `rename the strut part from HULL to TEMP.
COMPONENT TEMP
SHAPE HULL\HULL
/
DELETE HULL
READ HULL.GF `Now we read the file containing the hull.
CREATE HULL\STRUT `Just to make things more tidy, move the strut over to
SHAPE TEMP\TEMP `the HULL part.
FIT HULL
/
DELETE TEMP `The TEMP part can now be deleted.
CREATE SWATH `Let's call the part containing the final assembly "SWATH".
CLASS HULL
COMPONENT DECK `Create the deck component.
ENDS -60,60
TOP 30
BOTTOM 25
OUTBOARD 28
COMPONENT S-HULL `Create the starboard hull component.
SHAPE HULL\HULL
VECTOR 0,20,0 `This moves the CL component S-HULL.C over to the side.
COMPONENT P-HULL `Similarly for the port hull.
SHAPE HULL\HULL
VECTOR 0,-20,0
COMPONENT S-STRUT `Same idea for the struts.
SHAPE HULL\STRUT
VECTOR 0,20,0
FIT DECK `But make sure the struts don't overlap the deck.
COMPONENT P-STRUT `Similarly for the port strut.
SHAPE HULL\STRUT
VECTOR 0,-20,0
FIT DECK
/
DELETE HULL `Now get rid of the original HULL part.
DISPLAY
WRITE SWATH.GF
QUIT
If you would like to see another bulletin created regarding a specific topic,
please email Creative Systems, Inc. at support@ghsport.com.
Copyright (C) 2011
Creative Systems, Inc.