h3. General Program Information

{float:left|border=2px solid black}
[!Floc Wall with Ports.PNG|width=300px!|AutoCAD Channel Program]
Floc Wall with Ports
{float}
\\
\\

h3. Technical Program Outline

*local* \- [Layer{~}new~|AutoCAD Basics Layer] creates a new light purple layer, "baffle"

local <\- layer{~}new~("baffle", ltpurple)

*for loop* \- this loop counts the number of baffles per channel

x(j) - returns the number of channels in column j

*for loop* \- this loop determines the origin point of each baffle in column j and the length of each baffle

*baffle{*}{*}{~}origin i{~}* =
* x: Plant{~}Origin0~ \- L{~}Sed~ + X{~}FlocBaffles i,j~
* y: Y{~}FlocBaffles 0,j~
* z: Plant{~}Origin2~ + Z{~}FlocBaffles i,j~

*baffle{*}{*}{~}length i{~}* = L{~}FlocBaffles i,j~ (Defined in Flocculator 3)

layerset2 <\- layer{~}set~ ("0")

*layerthaw2* \- unlocks the "flocktank" layer for editing

layerthaw2 <\- layer{~}thaw~ ("flocktank")

*bigunion1* \- combines the tank and walls into a single piece

bigunion1 <\- union{~}allA~

*layerfreeze2* \- freezes "flocktankwall" for editing

layerfreeze2 <\- layer{~}freeze~ ("flocktankwall")

*layerfreeze3* \- freezes "flocktank" for editing

layerfreeze3 <\- layer{~}freeze~ ("flocktank")

local <\- stack(local, layerset2, bigunion1, layerset2, layerfreeze2, layerfreeze3)