Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
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 <*if/otherwise statement* \- 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")this statement determines the type of lamina that will be used to draw the baffles

local <\- stack(local(lamina(baffle{~}origin i~, Amp{~}FlocBaffle~, W{~}FlocBaffle~, baffle{~}length i~, T{~}FlocBaffle~, Per{~}FlocBaffle~,AN{~}FlocBaffle~, N{~}Baffle~, N{~}FlocBaffleCol~, X{~}FlocBaffle~, Y{~}FlocBaffle~)) if Baffle{~}complex~ *=* 1

local <\- stack(local, layerset2, bigunion1, layerset2, layerfreeze2, layerfreeze3)(laminaplain1(baffle{~}origin i~, W{~}FlocBaffle~, baffle{~}length i~, T{~}FlocBaffle~, AN{~}FlocBaffle~, N{~}Baffle~, N{~}FlocBaffleCol~, X{~}FlocBaffle~)) if Baffle{~}complex~ *=* 1 otherwise