Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

General Program Information

...

Wiki Markup
{float:left|border=2px solid black}
[!1b.bmp|width=330px!|AutoCAD Cross Program] [!1.bmp|width=330px!|AutoCAD Cross Program]
Southeast Isometric View
{float}



Input Definitions

Inputs Needed to Call the Cross Function

origin - a 3*1 matrix with x,y,z positions corresponding to the point where the tee will be drawn.
R1 - the ND - The nominal diameter of the pipe. This value along with the pipe schedule is used to determine other actual dimensions of the elbow
EN - The enumerated pipe schedule type. Each schedule of pipe is represented by a specific number within our code.

Inputs Defined within the Cross Database

R1 - The inner radius of the main pipe., defined by outerradius(ND)
R2 - the The outer radius of the main pipe., defined by innerD(ND,ED)/2
R3 - the The outer radius of the four larger pipes sockets of the tee., defined by ConRadius(ND)
L - the The length of the skinnier pipes main pipe of the tee., defined by ShortTeeLength(ND)*2
H - the length The depth of the four larger pipes sockets of the tee., defined by SocketDepth(ND)

Inputs Defined within the Cross Function

p1 =

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

p2 p17 =

  • x : origin0
  • y : origin12 + R2
  • z : origin2 + L/21

p18 p3 =

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

p4 p19 =

  • x : origin0 - R1
  • y : origin1z : origin2 + zc

p5 p20 =

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

p6 p21 =

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

p7 p22 =

  • x : origin0 - R3L/4
  • y : origin1 - R1
  • z : origin2

p8 p23 =

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

p9 p24 =

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

p10 =

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

ND = The nominal diameter of the pipe.
R1 = the inner radius of the main pipe.
R2 = the outer radius of the main pipe.
R3 = the outer radius of the four sockets of the tee.
L = the length of the main pipes of the tee.
H = the length of the four sockets of the tee.

win1 p11 =

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

win2 p12 =

  • x : origin0 + zcy : origin2 + (L/2

p13 =

  • + H)
  • x : origin0
  • y : origin2 1 + L + HR3
  • z : - origin12

p14 EN =

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

p15 =

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

p16 =

...

The pipe schedule

Technical Program Outline

Wiki Markup
{float:left|border=2px solid black}
[!1a.bmp|width=240px!|AutoCAD Cross Program]
{float}

The Cross program is built on the Tee Program.

Tee1 - builds a tee with origin p1, nominal diameter ND, and pipe schedule EN.

Tee1 <--Tee(p1,ND,EN)

p1 = origin

ND = The nominal diameter of the pipe.

EN = The pipe schedule



Wiki Markup
{float:left|border=2px solid black}
[!2.bmp|width=240px!|AutoCAD Cross Program]
Before mirror3
[!2c.bmp|width=360px!|AutoCAD Cross Program]
After mirror3
{float}

mirror3 - mirrors the tee around the centerline of the main pipe, using p17 to select the tee, then reflecting it over a mirror line created using p18 and p19 to give the slope and direction of the mirror line.

mirror3 <-- mirrorA(p17,p18,p19)

...

p17 =

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

...

  • x : origin0
  • y : origin2 + zc

p20 =

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



Wiki Markup
{float:left|border=2px solid black}
[!3.bmp|width=560px!|AutoCAD Cross Program]
{float}

cylinder7 - creates a cylinder of radius R2 within the cross.

cylinder7 <-- cylinderB(p20,R2,p21)

p20 p21 =

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

p22 =

  • x : origin0 - L/4
  • y : origin1 - R1
  • z : origin2

R2 - the outer radius of the main pipe.

p21 p23 =

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

p24 =

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

p25 =

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

p26 =

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

p27 =

  • x : origin0
  • y : origin2 + L

p28 =

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

p29 =

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

p30 =

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



Wiki Markup
{float:left|border=2px solid black}
[!4a.bmp|width=480px!|AutoCAD Cross Program]
[!4b.bmp|width=280px!|AutoCAD Cross Program]
Free Rotation used to show the cross is now hollow
{float}

subtract4 - subtracts the cylinder from the cross creating a hollow pipe, by selecting the 2 separate halves of the cross as the objects to be subtracted from by using p22 and p23, and selecting cylinder7 as the object to be subtracted by using p24. During the process of subtraction, the two separate pieces are unioned to act as one unit.

subtract4 <-- subtractB(p22,p23,p24)

p22 win1 =

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

win2 p23 =

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

win3 p24 =

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

win4 =

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

Technical Program Outline

The Cross program is built on the Tee Program.

mirror3 - mirrors the tee around the centerline of the main pipe.

Image Removed

cylinder7 - creates a cylinder within the cross.

subtract4 - subtracts the cylinder from the cross creating a hollow pipe.

  • - R3



Wiki Markup
{float:left|border=2px solid black}
[!1.bmp|width=330px!|AutoCAD Cross Program]
{float}

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

mirror4 viewfront2 <-bigunion2 - unions all the pieces created.- viewfront1