• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
blog.draftsperson.net

blog.draftsperson.net

the art of technical drawing

blog.draftsperson.net

CAM LISP: Draw a Plate Cam Profile From a Motion Law

August 6, 2026

CAM draws the working face of a plate cam — the shape that has to be cut so a roller follower rises by a given amount over a given angle, in a given way.

What CamProfile does

Three motion laws. Constant velocity rises at a steady rate: simple, and violent, because the acceleration is infinite at each end, so it hammers — use only at low speed. Harmonic follows a cosine: smooth in the middle, but the acceleration jumps at the ends, which rings. Cycloidal starts and finishes with zero acceleration, so nothing jerks. That is the one to use at speed, and it is the default.

Written as a fraction f of the way through the rise, with h the lift:

constant   s = h f
harmonic   s = h (1 - cos(π f)) / 2
cycloidal  s = h (f - sin(2π f) / 2π)

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type CAM.
  3. Give the base radius, the follower radius, the lift and the angle over which it rises.
  4. Choose the motion law — cycloidal unless you have a reason.
  5. Cut to the cam face layer, not the pitch curve.

How it works

The pitch curve and the cam face are not the same curve, and confusing them is the classic mistake.

The follower’s centre traces the pitch curve — base radius plus follower radius plus the lift. The cam face is that curve pulled in by the follower radius, along the normal at each point.

Both are drawn, on separate layers, and which is which is said plainly. Cutting to the pitch curve gives you a cam that lifts too far by exactly one follower radius, everywhere.

Notes and limits

  • Cut the cam face, not the pitch curve. They are on separate layers for that reason.
  • Cycloidal is the default because it is the only one of the three that does not shock the follower at the ends.
  • Constant velocity is included for completeness, not as a recommendation — its acceleration is infinite at both ends.
  • One undo group covers both curves.

Download and details

NameCamProfile — draw a plate cam profile from a motion law
DownloadCamProfile.lsp — 9.2 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandCAM
Requiresnothing beyond a CAD platform with AutoLISP.
Source size9.2 KB, 209 lines
Error handlingYes — a *error* handler restores every system variable it changed, on cancel as well as on error.
UndoThe whole operation is wrapped in a single undo group, so one U reverses all of it.
CompatibilityAutoCAD (any release with AutoLISP), BricsCAD, ZWCAD, GstarCAD, ProgeCAD and other IntelliCAD-based platforms. AutoCAD LT needs a LISP enabler. No .NET, no ObjectARX, no installer.
AuthorYZ, August 2026
LicenceFree to use, supplied “as is” with no warranty.

References

  • SPURGEAR LISP — involute gear teeth, the other classic profile
  • ARCTOCIRCLE LISP — converting the base circle afterwards
  • More free AutoLISP routines on this site
  • Wisey’s Steel Shapes — free structural steel section drawing program

Filed Under: AutoLISP Routines

Primary Sidebar

Subscribe to our Youtube Channel

Post CAD drafting jobs on Freelancer.com. and get some free money to do this.

Categories

  • American Steel Industry (4)
  • AutoCAD Articles & Reference (30)
  • AutoCAD Bugs & Problems (19)
  • AutoCAD Tips (29)
  • AutoCAD Tutorials (54)
  • AutoLISP Routines (328)
  • AutoLISP Tutorials (15)
  • CAD Standards (7)
  • Civil 3D (7)
  • Civil Drafting (4)
  • Dimensions (2)
  • Drafting Funnies (71)
  • Drafting History (9)
  • Drafting Standards (84)
  • Electrical Drafting (2)
  • General IT reference (7)
  • Geometry (15)
  • GIS (2)
  • Hatch Patterns (12)
  • Office Life Hacks (3)
  • PT (1)
  • Revit Tutorials (54)
  • Steel Detailing (14)
  • Structural Drafting (26)
  • Technical Dictionary (61)
  • Useful Website Links (19)

Footer

Free downloads

  • Free AutoLISP routines
  • Free hatch patterns
  • SHX fonts & text styles
  • Numbering LISP collection
  • ISO 3098B font

Reference charts

  • AWS weld symbols chart
  • Steel detailing chart
  • Hole & slot sizes
  • Bolt edge distance
  • ANSI & ARCH paper sizes
  • How to fold an A1 drawing

Useful links

  • CAD blocks (DWG)
  • Revit families
  • structuraldrafter.com
  • cad-corner.com
  • About
  • Privacy policy

Provided for free with no warranty · Log in