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

Basics - Cylinders

Wiki Markup
{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)
Wiki Markup
{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 acadversion = 2004 v 2006
  • ("_cylinder",sp,point(p1^<0>),sp,stringit(R1),sp,"a",sp,point(p2<0>^),sp) if acadversion = 2007
  • ("_cylinder",sp,point(p1^<0>),sp,stringit(R1),sp,"a",sp,point(p2<0>^),sp) if acadversion = 2008
  • ("_cylinder",sp,point(p1^<0>),sp,stringit(R1),sp,"f",sp,point(p2<0>^),sp) otherwise
Wiki Markup
{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))
Wiki Markup
{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 acadversion = 2004 v 2006
  • ("_cylinder",sp,point(p1^<0>),sp,stringit(R1),sp,"a",sp,point(p2<0>^)) if acadversion = 2007
  • ("_cylinder",sp,point(p1^<0>),sp,stringit(R1),sp,"a",sp,point(p2<0>^)) if acadversion = 2008
  • ("_cylinder",sp,point(p1^<0>),sp,stringit(R1),sp,"f",sp,point(p2<0>^)) otherwise