Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
h3. General Program

...

Image Removed

Input Definitions

...

 Information

{float:left|border=2px solid black}
[!tee.JPG|width=280px!|AutoCAD Pipe Program]
Southeast Isometric View
{float}
\\
\\

h3. Input Definitions

*Inputs Needed to Call the Tee Function*
origin - a 3*1 matrix with x,y,z positions corresponding to the point where the tee will be drawn.

...


R1 - the inner radius of the main pipe.

...


R2 - the outer radius of the main pipe.

...


R3 - the outer radius

...

Inputs Defined within the Tee Function

p1 =

  • x : origin0
  • y : origin1
  • z : origin2

p2 =

  • x : origin0
  • y : origin1
  • z : origin2 + L/2

p3 =

  • x : origin0 + L/2
  • y : origin1
  • z : origin2 + L/2

p4 =

  • x : origin0 - R1
  • y : origin1
  • z : origin2

p5 =

  • x : origin0 + L/2
  • y : origin1 + R1
  • z : origin2 + L/2

p6 =

  • x : origin0 - R2
  • y : origin1
  • z : origin2

p7 =

  • x : origin0 - R3
  • y : origin1
  • z : origin2

p8 =

  • x : origin0 - R1
  • y : origin1
  • z : origin2 - H

p9 =

  • x : origin0
  • y : origin1 - H
  • z : -origin1 - R3

p10 =

  • x : origin0
  • y : origin2 + L/2

p11 =

  • x : origin0 + zc
  • y : origin2 + L/2 - zc

*zc is a zooming constant used to add a short length to some dimensions in order to be sure an entire object is selected

p12 =

  • x : origin0 + zc
  • y : origin2 + L/2

p13 =

  • x : origin0
  • y : origin2 + L + H
  • z : -origin1

p14 =

  • x : origin0
  • y : origin2
  • z : -origin1

p15 =

  • x : origin0
  • y : origin2 - H
  • z : -origin1

p16 =

  • x : origin0
  • y : origin2 + R2
  • z : -origin1

win1 =

  • x : origin0 - (L/2 + H)
  • y : origin1 - R3
  • z : origin2

win2 =

  • x : origin0 + (L/2 + H)
  • y : origin1 + R3
  • z : origin2

win3 =

  • x : origin0 - R3 - zc
  • y : origin2 - H - zc
  • z : -origin1

win4 =

  • x : origin0 + L/2 + H + zc
  • y : origin2 + H + L + zc
  • z : -origin1

Technical Program Outline

viewtop - sets the workspace so that the user is viewing the object from the top.

zoom win - zooms the workspace to a smaller focus area

cylinder1 - creates a cylinder with length 'L' that comes out of the page.

cylinder2 - creates a cylinder with length 'L/2'.

Image Removed

union1 - unions the two cylinders.

cylinder3 - creates a cylinder with length 'L'.

cylinder4 - creates a cylinder with length 'L/2'.

Image Removed

subtract1 - subtracts the portion of cylinder2 and cylinder4 that are inside the cylinders creating a hollow pipe out of cylinder2 and cylinder4.

subtract2 - subtracts cylinder 3 from cylinder 1 creating a hollow pipe coming out of the page.

Image Removed
tee viewed from viewfront

cylinder5 - creates a cylinder with a depth 'H' and radius 'R3' into the page.

cylinder6 - creates a cylinder with a depth 'H' and radius 'R1' into the page.

subtract3 - subtracts cylinder 6 from cylinder 5 creating a hollow pipe with length 'H'.

viewfront - sets the workspace so that the user is viewing the object from the front.

Image Removed

zoom win1 - zooms the workspace to a focus area 

mirror1 - mirrors the bottom pipe 90 degrees clockwise.

mirror2 - mirrors the bottom pipe 180 degrees.

...

 of the sockets of the tee.
L - the length of the skinnier pipes of the tee.
H - the length (or depth) of the sockets of the tee.

*Inputs Defined within the Tee Function*

p1 =
* x : origin{~}0~
* y : origin{~}1~
* z : origin{~}2~

p2 =
* x : origin{~}0~
* y : origin{~}1~
* z : origin{~}2~ + L/2

p3 =
* x : origin{~}0~ + innerD(ND, EN)/2
* y : origin{~}1~
* z : origin{~}2~ + L/2

p4 =
* x : origin{~}0~ \- R1
* y : origin{~}1~
* z : origin{~}2~

p5 =
* x : origin{~}0~ + L/2
* y : origin{~}1~ + R1
* z : origin{~}2~ + L/2

p7 =
* x : origin{~}0~ \- R3
* y : origin{~}1~
* z : origin{~}2~

p8 =
* x : origin{~}0~ \- R1
* y : origin{~}1~
* z : origin{~}2~ \

p9 =
* x : origin{~}0~
* y : origin{~}1~ \- H
* z : \-origin{~}1~ \- R3

p10 =
* x : origin{~}0~
* y : origin{~}2~ + L/2

p11 =
* x : origin{~}0~ + zc
* y : origin{~}2~ + L/2 - zc

\*zc is a zooming constant used to add a short length to some dimensions in order to be sure an entire object is selected

p12 =
* x : origin{~}0~ + zc
* y : origin{~}2~ + L/2

ND

R1

R2

R3

L

H

win1 =
* x : origin{~}0~ \- (L/2 + H)
* y : origin{~}1~ \- R3
* z : origin{~}2~

win2 =
* x : origin{~}0~ + (L/2 + H)
* y : origin{~}1~ + R3
* z : origin{~}2~

EN

h3. Technical Program Outline

*Note:* All coordinates are referenced in top view in the program unless otherwise specified

{float:left|border=2px solid black}
[!tee cylinder1 and cylinder2.JPG|width=280px!|AutoCAD Pipe Program]
Southeast Isometric View
{float}

*zoom{*}{*}{~}win{~}*\- zooms on a window space directly around where the tee is to be drawn.  The points win1 and win2 are used to select this window size, based on including the space of the tee and a zoom constant (zc) to ensure the entire drawing will be within the frame.


zoom{~}win~ <-\- zoom{~}wina~(win1,win2)

win1 =
* x : origin{~}0~ \- (L/2 + H)
* y : origin{~}1~ \- R3
* z : origin{~}2~

win2 =
* x : origin{~}0~ + (L/2 + H)
* y : origin{~}1~ + R3
* z : origin{~}2~



cylinder1 - creates a cylinder with length 'L' that comes out of the page.

cylinder2 - creates a cylinder with length 'L/2'.

\\
\\

union1 - unions the two cylinders.

cylinder3 - creates a cylinder with length 'L'.

cylinder4 - creates a cylinder with length 'L/2'.

[!tee subtract1 subtract2.JPG!|AutoCAD Pipe Program]

subtract1 - subtracts the portion of cylinder2 and cylinder4 that are inside the cylinders creating a hollow pipe out of cylinder2 and cylinder4.

subtract2 - subtracts cylinder 3 from cylinder 1 creating a hollow pipe coming out of the page.

[!tee H pipe.JPG!|AutoCAD Pipe Program]
*tee viewed from viewfront*

cylinder5 - creates a cylinder with a depth 'H' and radius 'R3' into the page.

cylinder6 - creates a cylinder with a depth 'H' and radius 'R1' into the page.

subtract3 - subtracts cylinder 6 from cylinder 5 creating a hollow pipe with length 'H'.

viewfront - sets the workspace so that the user is viewing the object from the front.

[!tee mirror dimensions.JPG!|AutoCAD Pipe Program]

zoom ~win1~ \- zooms the workspace to a focus area&nbsp;

mirror1 - mirrors the bottom pipe 90 degrees clockwise.

mirror2 - mirrors the bottom pipe 180 degrees.

bigunion1 - joins all four pipes.