Inlet Pipe Drawing Script

layerthaw - Layerthaw unlocks the layer "channel" so that it can be edited.

layerthaw <-layerthaw("channel")

viewtop - Rotates the object so that it is being viewed from the top.

viewtop <-viewtop1

cylinder1 - CylinderC is used to create a cylinder based on a point, radius and length.

cylinder1 <- cylinderC(sedtankinletpipe1origin,outerradius(NDSedPipeEntrance),-sedtankinletpipelength)

sedtankinletpipe1origin =

  • x: PlantOrigin0 - LSed + (.5WInletChannel)
  • y: PlantOrigin1 + (WSed/4)
  • z: PlantOrigin2 + HSed - HInletChannel

outerradius(NDSedPipeEntrance) = specifies the radius of the cylinder.

sedtankinletpipelength = specifies the length of the cylinder.

cylinder2 - CylinderC is used to create a cylinder based on a point, radius and length.

cylinder2 <- cylinderC(sedtankinletpipe2origin,outerradius(NDSedPipeEntrance),-sedtankinletpipelength)

sedtankinletpipe2origin =

  • x: PlantOrigin0 - LSed + (.5WInletChannel)
  • y: PlantOrigin1 + (3WSed/4)
  • z: PlantOrigin2 + HSed - HInletChannel

outerradius(NDSedPipeEntrance) = specifies the radius of the cylinder.

sedtankinletpipelength = specifies the length of the cylinder.

subtractc - SubtractC subtracts one object from the other based on three points.

subtractc <- subtractH(channelorigin,p1,p2)

When sedlayout = 1, channelorigin is 3*1 matrix with x,y,z points corresponding to where the channel will be drawn. Channelorigin is called from the Channel Program.

Note: p1 and p2 are dummy variable used only in the program help section to designate the matrix below.

p1 =

  • x: sedtankinletpipe2origin0 + outerradius(NDSedPipeEntrance)
  • y: sedtankinletpipe2origin1 + outerradius(NDSedPipeEntrance)
  • z: sedtankpipe1origin2

p2 =

  • x: sedtankinletpipe1origin0 - outerradius(NDSedPipeEntrance)
  • y: sedtankinlepipe1origin1 - outerradius(NDSedPipeEntrance)
  • z: sedtankpipe4origin2)

layerset - Layerset selects the layer "0".

layerset <- layerset("0")

layerfreezec - Layerfreeze locks the layer "channel" so that it cannot be edited.

layerfreezec <- layerfreeze("channel")

layerthawis - Layerthaw unlocks the layer "inletslopes" so that it can be edited.

layerthawis <- layerthaw("inletslopes")

subtractis - SubtractH subtracts one object from the other based on three points.

subtractis <-subtractH(PlantOrigin,p1,p2)

PlantOrigin =

Note: p1 and p2 are dummy variable used only in the program help section to designate the matrix below.

p1 =

  • x: sedtankinletpipe2origin0 + outerradius(NDSedPipeEntrance)
  • y: sedtankinletpipe2origin1 + outerradius(NDSedPipeEntrance)
  • z: sedtankpipe1origin2

p2 =

  • x: sedtankinletpipe1origin0 - outerradius(NDSedPipeEntrance)
  • y:sedtankinletpipe1origin1 - outerradius(NDSedPipeEntrance)
  • z: sedtankpipe4origin2

layerfreezeis - Layerfreeze locks the layer "inletslopes" so that it cannot be edited.

layerfreezeis <- layerfreeze("inletslopes~)

layernewip - Layernew creates a new blue layer "inletpipes."

layernewip <- layernew("inletpipes",blue)

slopesip - Calls the Sedimentation Tank Slopes Program to draw tank slopes.

slopesip <- sedslope(PlantOrigin,p1,ANSedTopInlet)

PlantOrigin =

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

p1 =

  • x: LSed
  • y: WSed
  • z: HSed

AnSedTopInlet - Angle specifying the slope of the sedimentation tank walls.

moveip - Moveall is used to move all the selected objects by the specified distance.

moveip <-moveall(PlantOrigin,p1)

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

p1 =

  • x: PlantOrigin0
  • y: PlantOrigin1
  • z: PlantOrigin2 + outerdiameter(NDSedSludge)

pipe1 - Calls the [Pipe Program|AutoCad Pipe Program to draw a pipe.

pipe1 <- Pipe(sedtankinletpipe1origin,NDSedPipeEntrance,-sedtankinletpipelength,ENPipeSpec)

sedtankinletpipe1origin =

  • x: PlantOrigin0 - LSed + (.5WInletChannel)
  • y: PlantOrigin1 + (WSed/4)
  • z: PlantOrigin2 + HSed - HInletChannel

NDSedPipeEntrance = The nominal diameter of the tee. This value along with the pipe schedule is used to determine other actual dimensions of the tee.

sedtankinletpipelength = Specifies the length of the pipe.

ENPipeSpec = The enumerated pipe schedule type. Each schedule of pipe is represented by a specific number within our code.

pipe2 - Calls the [Pipe Program|AutoCad Pipe Program to draw a pipe.

pipe2 <- Pipe(sedtankinletpipe2origin,NDSedPipeEntrance,-sedtankinletpipelength~,ENPipeSpec)

sedtankinletpipe2origin =

  • x: PlantOrigin0 - LSed + (.5WInletChannel)
  • y: PlantOrigin1 + (WSed/4)
  • z: PlantOrigin2 + HSed - HInletChannel

NDSedPipeEntrance = The nominal diameter of the tee. This value along with the pipe schedule is used to determine other actual dimensions of the tee.

sedtankinletpipelength = Specifies the length of the pipe.

ENPipeSpec = The enumerated pipe schedule type. Each schedule of pipe is represented by a specific number within our code.

subtractip -SubtractK subtracts one object from the other based on three points.

subtractip <- subtractK(p1,p2,PlantOrigin)

Note: p1 and p2 are dummy variable used only in the program help section to designate the matrix below.

p1 =

  • x: sedtankinletpipe1origin0 + outerradius(ND{~}SedPipeEntrance)
  • y: sedtankinletpipe1origin1
  • z: sedtankinletpipe1origin2

p2 =

  • x: sedtankinletpipe2origin0 + outerradius(NDSedPipeEntrance)
  • y: sedtankinletpipe2origin1
  • z: sedtankinletpipe2origin2

PlantOrigin =

layerfreezeip - Layerfreeze locks the layer "inletpipes" so that it cannot be edited.

layerfreezeip <- layerfreeze("inletpipes")

  • No labels