General Program Information
Wiki Markup |
---|
h1. General Program Information {float:left|border=2px solid black} [!1a.bmp|width=380px!|AutoCAD Channel Program] Southeast Isometric View {float} \\ \\ h3. Input Definitions h5. Inputs Needed to Call the Channel Function channel{~}origin~ \- a 3*1 matrix with |
Input Definitions
Inputs Needed to Call the Channel Function
channelorigin - a 3*1 matrix with x,y,z
...
positions
...
corresponding
...
to
...
the
...
point
...
where
...
the
...
channel
...
will
...
be
...
drawn
...
channeldim - a 3*1
...
matrix
...
with
...
the
...
x,y,z
...
positions
...
specifying
...
the
...
dimensions
...
of
...
the
...
channel
...
cutout
...
t
...
-
...
specifies
...
the
...
thickness
...
of
...
the
...
channel
...
walls
...
Inputs
...
Defined
...
within
...
the
...
Channel
...
Function
...
p1
...
=
...
- x
...
- : channelorigin0
- y : channelorigin1
- z : channelorigin2
p2 =
- x : channelorigin0 + channeldim0
- y : channelorigin1 + channeldim1
- z : channelorigin2 + channeldim2
p3 =
- x : channelorigin0
- y : channelorigin1 - t
- z : channelorigin2 - t
p4 =
- x : channelorigin0 + channeldim0
- y : channelorigin1 + channeldim1 + t
- z : channelorigin2 channeldim2
p5 =
- x : channelorigin0
- y : channelorigin1 + channeldim1 + t
p6 =
- x : channelorigin0 - zc
- y : channelorigin1 - t - zc
p7 =
- x : channelorigin0 + channeldim0 + zc
- y : channelorigin1 + channeldim1 + t + zc
win1 =
- x : channelorigin0
- y : channelorigin1 - t
- z : channelorigin2
win2 =
- x : channelorigin0 + channeldim0
- y : channelorigin1 + channeldim1 + t
- z : channelorigin2
Technical Program Outline
viewtop - sets the workspace so that the user is viewing the top of the object.
viewtop <-- viewtop
Wiki Markup |
---|
channel{~}origin0~ * y : channel{~}origin1~ * z : channel{~}origin2~ p2 = * x : channel{~}origin0~ + channel{~}dim0~ * y : channel{~}origin1~ + channel{~}dim1~ * z : channel{~}origin2~ + channel{~}dim2~ p3 = * x : channel{~}origin0~ * y : channel{~}origin1~ \- t * z : channel{~}origin2~ \- t p4 = * x : channel{~}origin0~ + channel{~}dim0~ * y : channel{~}origin1~ + channel{~}dim1~ + t * z : channel{~}origin2~ channel{~}dim2~ p5 = * x : channel{~}origin0~ * y : channel{~}origin1~ + channel{~}dim1~ + t p6 = * x : channel{~}origin0~ \- zc * y : channel{~}origin1~ \- t - zc p7 = * x : channel{~}origin0~ + channel{~}dim0~ + zc * y : channel{~}origin1~ + channel{~}dim1~ + t + zc win1 = * x : channel{~}origin0~ * y : channel{~}origin1~ \- t * z : channel{~}origin2~ win2 = * x : channel{~}origin0~ + channel{~}dim0~ * y : channel{~}origin1~ + channel{~}dim1~ + t * z : channel{~}origin2~ h5. Technical Program Outline {float:left|border=2px solid black} [!2a.bmp|width=380px!|AutoCAD Channel Program] Top View {float} *viewtop* \- sets the workspace so that the user is viewing the top of the object. viewtop <-- viewtop *zoom{*}{*}{~}win{~}*\- zooms on a window space directly around where the channel is to be drawn (as shown above - actual window size relative to channel that is to be drawn). zoom{~}win~ <--zoom {~}wina~(win1, win2) win1 = * x : channel{~}origin0~ * y : channel{~}origin1~ \- t * z : channel{~}origin2~ win2 = * x : channel{~}origin0~ + channel{~}dim0~ * y : channel{~}origin1~ + channel{~}dim1~ |
zoomwin- zooms on a window space directly around where the channel is to be drawn (as shown above - actual window size relative to channel that is to be drawn).
zoomwin <--zoom wina(win1, win2)
win1 =
- x : channelorigin0
- y : channelorigin1 - t
- z : channelorigin2
win2 =
- x : channelorigin0 + channeldim0
- y : channelorigin1 + channeldim1 + t
- z : channelorigin2
Wiki Markup |
---|
+ t * z : channel{~}origin2~ \\ \\ {float:left|border=2px solid black} [!3.bmp|width=380px!|AutoCAD Channel Program] Top View [!3c.bmp|width=380px!|AutoCAD Channel Program] Southeast Isometric View {float} *box1* \- creates a box that will serve as the channel cutout. box1 <-- |
box1 - creates a box that will serve as the channel cutout.
box1 <-- boxA(p1,p2)
...
p1
...
=
...
- x
...
- : channelorigin0
- y : channelorigin1
- z : channelorigin2
p2 =
- x : channelorigin0 + channeldim0
- y : channelorigin1 + channeldim1
- z : channelorigin2 + channeldim2
Wiki Markup |
---|
channel{~}origin0~ * y : channel{~}origin1~ * z : channel{~}origin2~ p2 = * x : channel{~}origin0~ + channel{~}dim0~ * y : channel{~}origin1~ + channel{~}dim1~ * z : channel{~}origin2~ + channel{~}dim2~ \\ \\ {float:left|border=2px solid black} [!4.bmp|width=380px!|AutoCAD Channel Program] Top View [!4b.bmp|width=380px!|AutoCAD Channel Program] Southeast Isometric View {float} * |
box2
...
-
...
creates
...
the
...
outer
...
box
...
of
...
the
...
channel.
...
box2
...
<--
...
boxA(p3,p4)
...
p3
...
=
...
- x
...
- : channelorigin0
- y : channelorigin1 - t
- z : channelorigin2 - t
p4 =
- x : channelorigin0 + channeldim0
- y : channelorigin1 + channeldim1 + t
- z : channelorigin2 channeldim2
Wiki Markup |
---|
channel{~}origin0~ * y : channel{~}origin1~ \- t * z : channel{~}origin2~ \- t p4 = * x : channel{~}origin0~ + channel{~}dim0~ * y : channel{~}origin1~ + channel{~}dim1~ + t * z : channel{~}origin2~ channel{~}dim2~ \\ \\ {float:left|border=2px solid black} [!6.bmp|width=380px!|AutoCAD Channel Program] Top View [!5.bmp|width=380px!|AutoCAD Channel Program] Southeast Isometric View, After Subtract {float} *subtract1* \- subtracts the inner box from the outer box to create a channel, using p5 to select the outer box as the object to be subtracted from, and p6 and p7 to draw a box that selects the inner box as the object to be subtracted. subtract1 <-- |
subtract1 - subtracts the inner box from the outer box to create a channel, using p5 to select the outer box as the object to be subtracted from, and p6 and p7 to draw a box that selects the inner box as the object to be subtracted.
subtract1 <-- subtractH(p5,p6,p7)
...
p5
...
=
...
- x
...
- :
...
- channelorigin0
- y : channelorigin1 + channeldim1 + t
p6 =
- x : channelorigin0 - zc
- y : channelorigin1 - t - zc
p7 =
- x : channelorigin0 + channeldim0 + zc
- y : channelorigin1 + channeldim1 + t + zc