General Program Information

Basics - Cylinders

Unknown macro: {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)
Unknown macro: {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
Unknown macro: {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))
Unknown macro: {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
  • No labels