Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{float:left|border=2px solid black}
[!manifold with labels.bmp|width=450px!|AutoCAD Channel Program]
NorthEast Isometric View
{float}
\\
\\
h1. Manifold Drawing Script

...



*layer5* \- [Layer{~}new~|AutoCAD Basics Layer] creates a new blue layer "manifold."

...



layer5 <\- layer

...

{~}new~("manifold',blue2)

...

manifold1 - Calls the Manifold Program to create a manifold.

...



{float:left|border=2px solid black}
[!manifold1.bmp|width=450px!|AutoCAD Channel Program]
Top View
{float}
*manifold1* \- Calls the [Manifold Program|AutoCAD Manifold Pipe Program] to create a manifold.

manifold1 <-Manifold(manifold

...

{~}origin~,ND

...

{~}SedLaunder~,D

...

{~}SedLaunderOrifice~/2,manifold

...

{~}length~,B

...

{~}SedLaunderOrifices~,EN

...

manifoldorigin =

...

{~}PipeSpec~)
manifold{~}origin~ =

* if layout 1:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}Channel~ + T{~}ChannelWall~ + 2*ElbowRadius(ND

...

NDSedLaunder - Nominal diameter of launder.

DSedLaunderOrifice - Diameter of launder orifices.

manifoldlength - Specifies manifold length.

BSedLaunderOrifices - Spacing between orifices throughout the launder.

ENPipeSpec - Enumerated type.

rotate18 - Rotate3d turns the object based on a given axis and degree angle.

...

{~}SedLaunder~)
** y: tank{~}origin1~ + W{~}Sed~/2
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2

* if layout 2:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}Channel~ + T{~}ChannelWall~
** y: tank{~}origin1~ + W{~}Sed~/3
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2

* if layout 3:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}Channel~ + T{~}ChannelWall~ + W{~}EChannel~
** y: tank{~}origin1~ + W{~}Sed~/3
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2

* if layout 4:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}ChannelInlet~ + T{~}ChannelWall~ + W{~}EChannel~
** y: tank{~}origin1~ + W{~}Sed~/3
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2

ND{~}SedLaunder~ \- Nominal diameter of launder.

D{~}SedLaunderOrifice~ \- Diameter of launder orifices.

manifold{~}length~ \- Specifies manifold length.

B{~}SedLaunderOrifices~ \- Spacing between orifices throughout the launder.

EN{~}PipeSpec~ \- Enumerated type.
\\
\\
{float:left|border=2px solid black}
[!rotate17.bmp|width=450px!|AutoCAD Channel Program]
Top View
{float}
*rotate18* \- [Rotate{~}3d~|AutoCAD Basics Rotate] turns the object based on a given axis and degree angle.

rotate18 <\- rotate{~}3d~(p1,manifold{~}origin~,"y",90)

...



p1 =

...


* x: manifold

...

{~}origin0~ + innerD(ND

...

{~}sedLaunder~,EN

...

{~}PipeSpec~)/2

...


* y:

...

 manifold{~}origin1~
* z:

...

manifoldorigin =

...

 manifold{~}origin2~
manifold{~}origin~ =
* if layout 1:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}Channel~ + T{~}ChannelWall~ + 2*ElbowRadius(ND

...

"y" - specifies axis that object will be rotated about.

90 - rotation angle

rotate19 - Rotate3d turns the object based on a given axis and degree angle.

...

{~}SedLaunder~)
** y: tank{~}origin1~ + W{~}Sed~/2
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2

* if layout 2:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}Channel~ + T{~}ChannelWall~
** y: tank{~}origin1~ + W{~}Sed~/3
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2

* if layout 3:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}Channel~ + T{~}ChannelWall~ + W{~}EChannel~
** y: tank{~}origin1~ + W{~}Sed~/3
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2

* if layout 4:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}ChannelInlet~ + T{~}ChannelWall~ + W{~}EChannel~
** y: tank{~}origin1~ + W{~}Sed~/3
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2

"y" - specifies axis that object will be rotated about.

90 - rotation angle
\\
\\
{float:left|border=2px solid black}
[!rotate18.bmp|width=450px!|AutoCAD Channel Program]
Top View
{float}
{float:left|border=2px solid black}
[!rotate18 rightview.bmp|width=450px!|AutoCAD Channel Program]
Right View
{float}
*rotate19* \- [Rotate{~}3d~|AutoCAD Basics Rotate] turns the object based on a given axis and degree angle.

rotate19 <\- rotate{~}3d~(p1,manifold{~}origin~,"x",-60)

...



p1 =

...


* x:

...

 manifold{~}origin0~
* y: manifold

...

{~}origin1~ + innerD(ND

...

{~}sedLaunder~,EN

...

{~}PipeSpec~)/2

...


* z:

...

manifoldorigin =

...

 manifold{~}origin2~

manifold{~}origin~ =
* if layout 1:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}Channel~ + T{~}ChannelWall~ + 2*ElbowRadius(ND

...

"x" - specifies axis that object will be rotated about.

-60 - rotation angle

copym - CopyB duplicates the selected object.

copym <- copyB(manifoldorigin,manifoldorigin,manifold2origin)

layerset - Layerset selects the layer "0".

layerset <- layerset("0")

layerfreeze5 - Layerfreeze locks the layer "manifold" so that it cannot be edited.

...

{~}SedLaunder~)
** y: tank{~}origin1~ + W{~}Sed~/2
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2

* if layout 2:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}Channel~ + T{~}ChannelWall~
** y: tank{~}origin1~ + W{~}Sed~/3
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2

* if layout 3:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}Channel~ + T{~}ChannelWall~ + W{~}EChannel~
** y: tank{~}origin1~ + W{~}Sed~/3
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2

* if layout 4:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}ChannelInlet~ + T{~}ChannelWall~ + W{~}EChannel~
** y: tank{~}origin1~ + W{~}Sed~/3
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2

"x" - specifies axis that object will be rotated about.

\-60 - rotation angle
\\
\\
{float:left|border=2px solid black}
[!copym.bmp|width=450px!|AutoCAD Channel Program]
Top View
{float}
*copym* \- [CopyB|AutoCAD Basics Copy] duplicates the selected object.

copym <\- copyB(manifold{~}origin~,manifold{~}origin~,manifold2{~}origin~)

manifold{~}origin~ =
* if layout 1:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}Channel~ + T{~}ChannelWall~ + 2*ElbowRadius(ND{~}SedLaunder~)
** y: tank{~}origin1~ + W{~}Sed~/2
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2

* if layout 2:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}Channel~ + T{~}ChannelWall~
** y: tank{~}origin1~ + W{~}Sed~/3
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2

* if layout 3:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}Channel~ + T{~}ChannelWall~ + W{~}EChannel~
** y: tank{~}origin1~ + W{~}Sed~/3
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2

* if layout 4:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}ChannelInlet~ + T{~}ChannelWall~ + W{~}EChannel~
** y: tank{~}origin1~ + W{~}Sed~/3
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2

manifold2{~}origin~ =
* if layout 1:
** x: 0
** y: 0
** z: 0

* if layout 2:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}Channel~ + T{~}ChannelWall~
** y: tank{~}origin1~ + 2*W{~}Sed~/3
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2

* if layout 3:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}Channel~ + T{~}ChannelWall~ + W{~}EChannel~
** y: tank{~}origin1~ + 2*W{~}Sed~/3
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2

* if layout 4:
** x: tank{~}origin0~ \- L{~}Sed~ + W{~}ChannelInlet~ + T{~}ChannelWall~ + W{~}EChannel~
** y: tank{~}origin1~ + 2*W{~}Sed~/3
** z: tank{~}origin2~ + HW{~}Sed~ \- H{~}SedAbove~/2
\\
\\
*layerset* \- [Layer{~}set~|AutoCAD Basics Layer] selects the layer "0".

layerset <\- layer{~}set~("0")

*layerfreeze5* \- [Layer{~}freeze~|AutoCAD Basics Layer] locks the layer "manifold" so that it cannot be edited.

layerfreeze5 <\- layer{~}freeze~("manifold")