• 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

GANTTCHART LISP: Draw a Programme Bar Chart in AutoCAD

August 6, 2026

GANTTCHART draws a construction programme as a bar chart: a task name column down the left, twelve months across the top, and a coloured bar per task spanning from its start date to its finish.

What GanttChart does

It is drawn as ordinary AutoCAD geometry, so it plots as part of the drawing set and lives on the sheet with everything else — which is the whole point of doing it here rather than in a scheduling package.

The year can start anywhere. Pick the month the programme starts in and the twelve columns rotate to begin there, so a job running August to July reads left to right without wrapping.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type GANTTCHART.
  3. Pick the insertion point and the month the programme starts in.
  4. Say whether it is a leap year — the scale adjusts.
  5. Give each task its name, start and finish.

How it works

The twelve columns are not equal width. Each month is as wide as its own number of days, so the horizontal scale is genuinely linear in time.

That means a bar drawn from 20 March to 10 April is the right length, and measuring across the chart gives real durations. Equal-width months — which is what most hand-drawn charts use — quietly distort every bar that crosses a month boundary, and the distortion compounds across a year.

February takes 28 or 29 days depending on whether you say it is a leap year, and the whole scale adjusts with it.

Notes and limits

  • Months are scaled by real length, so you can measure durations off the chart.
  • Twelve months. A longer programme needs a second chart, or the columns rescaling.
  • Set the leap year correctly — it shifts every column after February.
  • One undo group covers the chart.

Download and details

NameGanttChart — a twelve month programme bar chart, as drawing geometry
DownloadGanttChart.lsp — 14.6 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandGANTTCHART
Requiresnothing beyond a CAD platform with AutoLISP.
Source size14.6 KB, 334 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

  • GRAPHGRID LISP — ruled and numbered graph paper for other plots
  • TIMELOG LISP — recording the time the work actually took
  • 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