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
h1. General Program Information

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

h3. Input Definitions


h5.


h5. Inputs Needed to Call the Tee Function

Origin - a 3*1 matrix with 



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

...

pipe

...

will

...

be

...

drawn,

...

it correponds to the lower center of the pipe
ND - The nominal diameter of the tee. This value along with the pipe schedule is used to determine other actual dimensions of the tee.
EN- The enumerated pipe schedule type. Each schedule of pipe is represented by a specific number within our code.
Pipelength - the length of the pipe

Inputs Defined within Pipe Database

Pipeinr - The outer radius of the main pipe, defined by outerradius(ND)
Pipeour - The inner radius of the main pipe, defined by innerD(ND,ED)/2

...

Inputs

...

Defined

...

within

...

the

...

Pipe

...

Function

...

p2

...

=

...

  • x

...

  • :

...

  • origin

...

  • 0 + pipeoutr
  • y : origin1
  • z : origin2

p3 =

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

win1 =

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

win2 =

  • x : origin0 + pipeoutr + zc
  • y : origin1 + pipeoutr + zc
  • z : origin2

Pipeouinr is the outer radius of the pipe, found from the pipe database using the outer diameter function 

Pipeoutr is the outer radius of the pipe, found from the pipe database using the outerradius function

Note: zc corresponds to the zoom constant used within AutoCAD and created in the basics file that is referenced by the pipe program.

Technical Program Outline

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

Wiki Markup
 pipe{~}outr~
* y : origin{~}1~
* z : origin{~}2~

p3 =
* x : origin{~}0~ + pipe{~}inr~
* y : origin{~}1~
* z : origin{~}2~

win1 =
* x : origin{~}0~ \- pipe{~}outr~ \- zc
* y : origin{~}1~ \- pipe{~}outr~ \- zc
* z : origin{~}2~

win2 =
* x : origin{~}0~ + pipe{~}outr~ + zc
* y : origin{~}1~ + pipe{~}outr~ + zc
* z : origin{~}2~

Pipe{~}ouinr~ is the outer radius of the pipe, found from the pipe database using the outer diameter function 

Pipe{~}outr~ is the outer radius of the pipe, found from the pipe database using the outerradius function

*Note:* zc corresponds to the zoom constant used within AutoCAD and created in the basics file that is referenced by the pipe program.

h1. Technical Program Outline

*Note:* All coordinates are referenced in top view in the program unless otherwise specified
{float:left|border=2px solid black}
[!1.JPG|width=550px!|AutoCAD Pipe Program]
Top View
{float}

zoomwin- zooms on a window space directly around where the pipe is to be draw (as shown above - actual window size relative to pipe that is to be drawn).  The points win1 and win2 are used to select this window size, based on including the space of the pipe (the outer radius) and a zoom constant (zc) to ensure the entire drawing will be within the frame.

zoomwin <-- zoomwina(win1,win2)

win1 =

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

win2 =

  • x : origin0 + pipeoutr + zc
  • y : origin1 + pipeoutr + zc
  • z : origin2




Wiki Markup
{
*zoom{*}{*}{~}win{~}*\- zooms on a window space directly around where the pipe is to be draw (as shown above - actual window size relative to pipe that is to be drawn).&nbsp; The points win1 and win2 are used to select this window size, based on including the space of the pipe (the outer radius) and a zoom constant (zc) to ensure the entire drawing will be within the frame.

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

win1 =
* x : origin{~}0~ \- outerradius(2*pipe{~}inr~) - zc
* y : origin{~}1~ \- outerradius(2*pipe{~}inr~) - zc
* z : origin{~}2~

win2 =
* x : origin{~}0~ + outerradius(2*pipe{~}inr~) + zc
* y : origin{~}1~ + outerradius(2*pipe{~}inr~) + zc
* z : origin{~}2~

\\
\\
\\
{float:left|border=2px solid black}
[!2.JPG|width=250px!|AutoCAD Pipe Program]
Top View
[!3.JPG|width=180px!|AutoCAD Pipe Program]
Southwest Isometric View
{float}
*

cylinder1

...

-

...

Draws

...

the

...

larger

...

of

...

the

...

two

...

cylinders

...

needed

...

to

...

create

...

a

...

pipe.

...

The

...

cylinder

...

has

...

pipe

...

outr as

...

the

...

radius.

...

From

...

topview,

...

the

...

cylinder

...

draws

...

up

...

towards

...

the

...

viewer

...

with

...

the

...

pipe

...

origin

...

at

...

the

...

bottom

...

base.

...

cylinder1

...

<-

...

-

...

cylinderA(origin,pipe

...

outr,pipelength)

origin =

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

pipeoutr = pipeoutr

pipelength = pipelength




Wiki Markup
{{~}length~)

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

pipe{~}outr~&nbsp;= outerradius(2*pipe{~}inr~)

pipe{~}length~&nbsp;= pipe{~}length~

\\
\\
\\
{float:left|border=2px solid black}
[!4.JPG|width=250px!|AutoCAD Pipe Program]
Top View
[!5.JPG|width=180px!|AutoCAD Pipe Program]
Southwest Isometric View
{float}
*

cylinder2

...

-

...

Draws

...

the

...

smaller

...

of

...

the

...

two

...

cylinders

...

needed

...

to

...

create

...

the

...

pipe.

...

The

...

cylinder

...

has

...

pipe

...

inr as

...

the

...

radius.

...

From

...

topview,

...

the

...

cylinder

...

draws

...

up

...

towards

...

the

...

viewer

...

with

...

the

...

pipe

...

origin

...

at

...

the

...

bottom

...

base.

...

This

...

inner

...

cylinder

...

will

...

then

...

be

...

subtracted

...

to

...

create

...

the

...

hollow

...

pipe,

...

with

...

the

...

inner

...

radius

...

as

...

specified.

...

cylinder2

...

<-

...

-

...

cylinderA(origin,pipe

...

inr,pipelength)

origin =

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

pipeinr : pipeinr

pipelength : pipelength




Wiki Markup
{{~}length~)

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

pipe{~}inr~ : pipe{~}inr~

pipe{~}length~ : pipe{~}length~

\\
\\
\\
{float:left|border=2px solid black}
[!6.JPG|width=380px!|AutoCAD Pipe Program]
Top View
{float}
*

subtract1

...

-

...

In

...

order

...

to

...

create

...

the

...

hollow

...

pipe,

...

the

...

inner

...

cylinder

...

must

...

be

...

subtracted

...

from

...

the

...

outer

...

cylinder.

...

The

...

subtract

...

function

...

selects

...

p2,

...

on

...

the

...

edge

...

of

...

the

...

inner

...

cylinder,

...

to

...

select

...

the

...

inner

...

cylinder

...

as

...

the

...

piece

...

to

...

be

...

subtracted.

...

The

...

subtract

...

function

...

then

...

selects

...

p3,

...

on

...

the

...

edge

...

of

...

the

...

outer

...

cylinder,

...

to

...

select

...

the

...

outer

...

cylinder

...

to

...

subtract

...

from.

...

subtract

...

<-

...

-

...

subtractD(p2,p3)

...

p2

...

=

...

  • x

...

  • :

...

  • origin

...

  • 0 + pipeinr
  • y : origin1
  • z : origin2

p3 =

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




Wiki Markup
 pipe{~}inr~
* y : origin{~}1~
* z : origin{~}2~

p3 =
* x : origin{~}0~ + outerradius(2*pipe{~}inr~)
* y : origin{~}1~
* z : origin{~}2~

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