Versions Compared

Key

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


h2. Basics - Cylinders

{float:left|border=2px solid black}
!cylinderA.bmp!
{float}
\\
\\
*cylinderA* \- a function that takes in the inputs of a point, radius, and length to render a cylinder perpendicular to the point given, along the positive axis. This function is used at the beginning or middle of a line of AutoCAD code.
cylinderA(p1,R1,L) :=
* ("_cylinder",sp,point(p1^<0>^),sp,stringit(R1),sp,stringit(L),sp)

{float:left|border=2px solid black}
!cylinderB.bmp!
{float}
\\
\\
*cylinderB* \- a function that takes in the inputs of two points and a radius to render a cylinder at any angle in space. This function is used at the beginning or middle of a line of AutoCAD code.
cylinderB(p1,R1,p2) :=
* ("_cylinder",sp,point(p1^<0>^),sp,stringit(R1),sp,"c",sp,point(p2^<0>^),sp) if acad{~}version~ = 2004 v 2006
* ("_cylinder",sp,point(p1^<0>^),sp,stringit(R1),sp,"a",sp,point(p2^<0>^),sp) if acad{~}version~ = 2007
* ("_cylinder",sp,point(p1^<0>^),sp,stringit(R1),sp,"a",sp,point(p2^<0>^),sp) if acad{~}version~ = 2008
* ("_cylinder",sp,point(p1^<0>^),sp,stringit(R1),sp,"f",sp,point(p2^<0>^),sp) otherwise

{float:left|border=2px solid black}
!cylinderC.bmp!
{float}
\\
\\
*cylinderC* \- a function that takes in the inputs of a point, radius. and length to render a cylinder perpendicular to the point given, along the positive axis. This function is used at the end of a line of AutoCAD code.
cylinderC(p1,R1,L) :=
* ("_cylinder",sp,point(p1^<0>^),sp,stringit(R1),sp,stringit(L))

{float:left|border=2px solid black}
!cylinderD.bmp!
{float}
\\
\\
*cylinderD* \- a function that takes in the inputs of two points and a radius to render a cylinder at any angle in space. This function is used at the end of a line of AutoCAD code.
cylinderD(p1,R1,p2) :=
* ("_cylinder",sp,point(p1^<0>^),sp,stringit(R1),sp,"c",sp,point(p2^<0>^)) if acad{~}version~ = 2004 v 2006
* ("_cylinder",sp,point(p1^<0>^),sp,stringit(R1),sp,"a",sp,point(p2^<0>^)) if acad{~}version~ = 2007
* ("_cylinder",sp,point(p1^<0>^),sp,stringit(R1),sp,"a",sp,point(p2^<0>^)) if acad{~}version~ = 2008
* ("_cylinder",sp,point(p1^<0>^),sp,stringit(R1),sp,"f",sp,point(p2^<0>^)) otherwise