Inlet Slope Drawing Script
layerslopes2 - Layernew creates a new light grey layer "inletslopes."
layerslopes2 <- layernew("inletslopes",ltgrey)
inletslopes - Calls the Sedimentation Tank Inlet Slopes Program to draw inlet slopes based on given inputs.
inletslopes <- Inletslope(inletslopesorigin,LSed,LSedTopInlet,LSedSlopeInlets,HSedInlet,TSedInletSlope,NSedSlopeInlets,ANSedTopInlet)
inletslopesorigin =
- x: PlantOrigin0 - LSed
- y: PlantOrigin1 + WSed/2
- z: PlantOrigin2 + outerdiameter(NDSedSludge)
LSed = 2.658m
LSedTopInlet = 43.363deg
LSedSlopeInlets = LSedInletSlope
HSedInlet = 0.057m
TSedInletSlope = 0.05m
NSedSlopeInlets = 1
ANSedTopInlet = 43.464deg
layerset - Layerset selects the layer "0".
layerset <- layerset("0")
layerfreezeinslope - Layerfreeze locks the layer "inletslopes" so that it cannot be edited.
layerfreezeinslope <- layerfreeze("inletslopes")
layerslopes - Layernew creates a new light grey layer "slopes."
layerslopes <- layernew("slopes",ltgrey)
slopes - Calls the AutoCAD Sedimentation Tank Slopes Program to create tank slopes based on three inputs.
slopes <- sedslope(PlantOrigin,p1,ANSedBottom~)
Note: p1 is a dummy variable used only in the program help section to designate the matrix below.
PlantOrigin =
p1 =
- x: LSed
- y: WSed
- z: HSed
ANSedBottom = 10deg
moves - Moveall shifts all the objects in the workspace.
moves <- moveall(PlantOrigin,p1)
PlantOrigin =
p1 =
- x: PlantOrigin0
- y: PlantOrigin1
- z: PlantOrigin2 + outerdiameter(NDSedSludge)
inletslopesridge - Calls the Sedimentation Tank Inlet Slopes Program to create inlet slopes based on given inputs.
inletslopesridge <- Inletslope(inletslopesorigin,LSed,LsedTopInlet + (TSedInletSlope*tan(ANSedTopInlet~)),LSedSlopeInlets,LSedTopInlet,TSedInletSlope,NSedSlopeInlets,ANSedTopInlet)
inletslopesorigin =
- x: PlantOrigin0 - LSed
- y: PlantOrigin1 + WSed/2
- z: PlantOrigin2 + outerdiameter(NDSedSludge)
LSed = 2.658m
LSedTopInlet = 43.363deg
T{~}SedInletSlope = 0.05m
tan(ANSedTopInlet) = tan(43.464deg)
LSedSlopeInlets = LSedInletSlope
NSedSlopeInlets = 1
ANSedTopInlet = 43.464deg
tankthaw - Layerthaw unlocks the layer "tank" so that it can be edited.
tankthaw <- layerthaw("tank")
bigunion - UnionallA selects all the objects in the workspace and unions them into a single object.
bigunion <- unionallA
box1 - Creates a box based on two points.
box1 <- box(sedtankbox1origin,sedtankbox1origin + sedtankbox1dim
sedtankbox1origin =
- x: PlantOrigin0 - LSed
- y: PlantOrigin1 + WSed/2 - outerradius(NDSedSludge)
- z: PlantOrigin2
sedtankbox1dim =
- x: LSed
- y: outerdiameter(NDSedSludge)
- z: 3outerdiameter(NDSedSludge)
subtractbox - SubtractK subtracts one object from the other based on three points.
subtractbox <- subtractK(PlantOrigin - zc,p1,p2)
p1 =
- x: PlantOrigin0 - LSed/4
- y: PlantOrigin1 + WSed/4
- z: PlantOrigin2 + HSed/4
p2 =
- x: PlantOrigin0
- y: PlantOrigin1 + WSed/2
- z: PlantOrigin2
layerfreezeslope - Layerfreeze locks the layer "slopes" so that it cannot be edited.
layerfreezeslope <- layerfreeze("slopes")