h1. Tank Drawing Script

*viewtops* \- sets the workspace so that the user is viewing the top of the object

viewtops <\- viewtop1

*layer1* \- [Layer{~}new~|AutoCAD Basics Layer] creates a new grey layer "tank."

layer1 <\- layer{~}new~("tank", grey)
{float:left|border=2px solid black}
[!tank1.bmp|width=460px!|AutoCAD Channel Program]
{float}
*tank1* \- Calls the [Tank Program|AutoCAD Tank Program] to create a tank based on three inputs.

Note: p1 is a dummy variable used only in the program help section to designate the matrix below.

tank1 <\- Tank(Plant{~}Origin~, p1,T{~}PlantWall~)

Plant{~}Origin~ =

p1 =
* x: L{~}Sed~
* y: W{~}Sed~
* z: H{~}Sed~

T{~}PlantWall~ = 0.15m
\\
\\
{float:left|border=2px solid black}
[!sed tank box 1.bmp|width=460px!|AutoCAD Channel Program]
Northeast Isometric View
{float}
*boxt* \- Creates a [box|AutoCAD Basics Box] based on two points.

boxt <\- box(Plant{~}Origin~,sedbottombox{~}dim~)

Plant{~}Origin~ =

sedbottombox{~}dim~ =
* x: \-L{~}Sed~
* y: W{~}Sed~
* z: outerdiameter(ND{~}SedSludge~)

ND{~}SedSludge~ = Sludge pipe diameter in sedimentation tank
\\
\\
*uniont* \- [Union{~}allA~|AutoCAD Basics Unions] selects all the objects in the workspace and unions them into a single object.

uniont <\- union{~}allA~

*layerset* \- [Layer{~}set~|AutoCAD Basics Layer] selects the layer that the user is currently working in.

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

*layerfreeze1* \- [Layer{~}freeze~|AutoCAD Basics Layer] locks the selected layer so that it cannot be edited.

layerfreeze1 <\- layer{~}freeze~("tank")