layer2 - Layernew creates a new light grey layer, "channel."
layer2 <- layernew("channel",ltgrey)
channel1 - Calls the Channel Program to draw a channel.
channel1 <- ChannelDrawing(channelorigin,p1,TChannelWall)
channelorigin =
if layout 2:
if layout 3:
if layout 4 :
p1 = Specifies the dimensions of the channel cutout.
TChannel specifies the thickness of the channel wall.
{float:left|border=2px solid black}
[!inlet rotate 1.bmp|width=280px!|AutoCAD Channel Program]
Top View
{float} |
rotate1 - Rotate rotates the selected object by the designated degrees.
rotate1 <- rotate(channelorigin,90)
channelorigin =
if layout 2:
if layout 3:
if layout 4 :
90 = rotation angle
box1 - Creates a box based on two points.
box1 <- box(channelinletwallorigin,channelinletwallorigin + channelinletwalldim)
channelinletwallorigin =
channelinletwalldim =
bigunion - UnionallA selects all the objects visible in the workspace and joins them all into a single object.
bigunion <- unionallA
box2 - Creates a box based on two points.
box2 <- box(channelinletbox1origin,channelinletbox1origin + channelinletbox1dim)
channelinletbox1origin =
channelinletbox1dim =
subtract2 - SubtractD subtracts one object from the other based on two points.
subtract2 <- subtractD(PlantOrigin,channelinletbox1origin)
PlantOrigin =
channelinletbox1origin =
box3 - Creates a box based on two points.
box3 <- box(channelinletbox2origin,channelinletbox2origin + channelinletbox2dim)
channelinletbox2origin =
channelinletbox2dim =
subtract3 - SubtractD subtracts one object from the other based on two points.
subtract3 <- subtractD(PlantOrigin,channelinletbox2origin)
PlantOrigin =
channelinletbox2origin =
layerset - Layerset selects the layer "0".
layerset <- layerset("0")
viewtops - Rotates the object so that it is viewed from the top.
viewtops <-viewtop1
layerfreeze2 - Layerfreeze locks the layer "channel" so that it cannot be edited.
layerfreeze2 <- layerfreeze("channel")