General Program Information
Basics - Cylinders
cylinderA - a function that takes in the inputs of a point, radius. and length to render a cylinder perpendicular to the point given. 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)
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
cylinderC - a function that takes in the inputs of a point, radius. and length to render a cylinder perpendicular to the point given. 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),sp)
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>),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