Building a SWATH
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
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.
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.
DELETE TEMP `The TEMP part can now be deleted.
CREATE SWATH `Let's call the part containing the final assembly "SWATH".
COMPONENT DECK `Create the deck component.
COMPONENT S-HULL `Create the starboard hull component.
VECTOR 0,20,0 `This moves the CL component S-HULL.C over to the side.
COMPONENT P-HULL `Similarly for the port hull.
COMPONENT S-STRUT `Same idea for the struts.
FIT DECK `But make sure the struts don't overlap the deck.
COMPONENT P-STRUT `Similarly for the port strut.
DELETE HULL `Now get rid of the original HULL part.
If you would like to see another bulletin created regarding a specific topic,
please email Creative Systems, Inc. at email@example.com.
Copyright (C) 2011
Creative Systems, Inc.