Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
(Northeast view of sludge pipe with labels needed)

h1. Sludge Pipe Drawing Script

...



*layer6* \- [Layer{~}new~|AutoCAD Basics Layer] creates a new blue3 layer "sludgepipe."

...



layer <\- layer

...

{~}new~("sludgepipe",blue3)

...

sludgepipe1 - Calls the Sludge Pipe Program to create a sludge pipe.

sludgepipe1 <- Sludgepipe(wasteorigin,NDSedSludge,LSed,DSedSludgeOrifice/2,BSedSludgeOrifices,ENPipeSpec)

wasteorigin =

  • x: tankorigin0 - LSed
  • y: tankorigin1 + WSed/2
  • z: tankorigin2 + outerdiameter(NDSedSludge)/2

NDSedSludge - Sludge pipe diameter in sed tank.

LSed - Length of sed tank.

DSedSludgeOrifice - Diameter of orifices in sludge pipe.

BSedSludgeOrifices - Orifice spacing in sedimentation tank draining pipe.

ENPipeSpec - Enumerated type.

rotate20 - Rotate3d turns the object based on a given axis and degree angle.

...


{float:left|border=2px solid black}
[!sludgepipe1.bmp|width=450px!|AutoCAD Chemical Stock Tank Program]
Top View
{float}
*sludgepipe1* \- Calls the [Sludge Pipe Program|AutoCAD Sludge Pipe Program] to create a sludge pipe.

sludgepipe1 <\- Sludgepipe(waste{~}origin~,ND{~}SedSludge~,L{~}Sed~,D{~}SedSludgeOrifice~/2,B{~}SedSludgeOrifices~,EN{~}PipeSpec~)

waste{~}origin~ =
* x: tank{~}origin0~ \- L{~}Sed~
* y: tank{~}origin1~ + W{~}Sed~/2
* z: tank{~}origin2~ + outerdiameter(ND{~}SedSludge~)/2

ND{~}SedSludge~ \- Sludge pipe diameter in sed tank.

L{~}Sed~ \- Length of sed tank.

D{~}SedSludgeOrifice~ \- Diameter of orifices in sludge pipe.

B{~}SedSludgeOrifices~ \- Orifice spacing in sedimentation tank draining pipe.

EN{~}PipeSpec~ \- Enumerated type.
\\
\\
{float:left|border=2px solid black}
[!rotate20.bmp|width=700px!|AutoCAD Chemical Stock Tank Program]
Top View
{float}
*rotate20* \- [Rotate{~}3d~|AutoCAD Basics Rotate] turns the object based on a given axis and degree angle.

rotate20 <\- rotate{~}3d~(p1,waste{~}origin~,"y",90)

...



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

...



p1 =

...


* x: waste

...

{~}origin0~ + innerD(ND

...

{~}SedSludge~,EN

...

{~}PipeSpec~)/2

...


* y:

...

 waste{~}origin1~
* z:

...

wasteorigin =

  • x: tankorigin0 - LSed
  • y: tankorigin1 + WSed/2
  • z: tankorigin2 + outerdiameter(NDSedSludge)/2

"y" - specifies axis that object will be rotated about.

90 - rotation angle

rotate21 - Rotate3d turns the object based on a given axis and degree angle.

...

 waste{~}origin2~

waste{~}origin~ =
* x: tank{~}origin0~ \- L{~}Sed~
* y: tank{~}origin1~ + W{~}Sed~/2
* z: tank{~}origin2~ + outerdiameter(ND{~}SedSludge~)/2

"y" - specifies axis that object will be rotated about.

90 - rotation angle
\\
\\
{float:left|border=2px solid black}
[!rotate21.bmp|width=550px!|AutoCAD Chemical Stock Tank Program]
Top View
{float}
{float:left|border=2px solid black}
[!rotate21 rightview.bmp|width=450px!|AutoCAD Chemical Stock Tank Program]
Right View
{float}
*rotate21* \- [Rotate{~}3d~|AutoCAD Basics Rotate] turns the object based on a given axis and degree angle.

rotate21 <\- rotate{~}3d~(p1,waste{~}origin~,"x",90)

...



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

...



p1 =

...


* x:

...

 waste{~}origin0~
* y: waste

...

{~}origin1~ + innerD(ND

...

{~}SedSludge~,EN

...

{~}PipeSpec~)/2

...


* z:

...

wasteorigin =

  • x: tankorigin0 - LSed
  • y: tankorigin1 + WSed/2
  • z: tankorigin2 + outerdiameter(NDSedSludge)/2

"x" - specifies axis that object will be rotated about.

90 - rotation angle

layerset - Layerset selects the layer "0".

layerset <- layerset("0")

layerfreeze6 - Layerfreeze locks the layer "sludgepipe" so that it cannot be edited.

...

 waste{~}origin2~

waste{~}origin~ =
* x: tank{~}origin0~ \- L{~}Sed~
* y: tank{~}origin1~ + W{~}Sed~/2
* z: tank{~}origin2~ + outerdiameter(ND{~}SedSludge~)/2

"x" - specifies axis that object will be rotated about.

90 - rotation angle
\\
\\
*layerset* \- [Layer{~}set~|AutoCAD Basics Layer] selects the layer "0".

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

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

layerfreeze6 <\- layer{~}freeze~("sludgepipe")