General Program Information
Technical Program Outline
layer1 - Creates a 'grit-pipe' layer for all of the pipes in the program
Pipe1 - Creates a pipe with an origin at the variable "origin". See Pipe Help for details on the pipe function.
pipe1 length = gritdisp1
Rotate1 - the rotate3d function is used to rotate the pipe about the y axis, with the origin as the pivot, -90 degrees. Information about the rotate3d function can be found in the basics help page
AutoCAD Grit Chamber Program
Pipe2
pipe2 origin =
- x:origin 0 - pipe1 ~length~ - ElbowRadius
- y:origin 1
- z:origin 2 +ElbowRadius
pipe2 length = Δz grit - 3ElbowRadius - SocketDepth
Notes: ElbowRadius is the radius of curvature of an elbow. In the script it is given as a function of the inner radius. This function is defined in the Pipe Database program
SocketDepth is the connection depth for pieces such as elbows and tees which connect with pipes.In the script it is given as a function of the inner radius. This function is defined in the Pipe Database program