• 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

CROSSHAIR LISP: Centre-Mark a Circle, Arc or Ellipse

August 3, 2026

CROSSHAIR draws a crossed pair of centrelines through an arc, circle or ellipse, at a length and rotation you drag out. It is a small routine and it does one thing, which is most of the point.

What CrossHair does

DIMCENTER will centre-mark a circle, but the size comes from DIMCEN and the marks are always orthogonal to the current UCS. When you want the centrelines to run at the angle of the thing they belong to — a bolt hole on a sloping flange, a pipe on a skewed run — you are back to drawing them by hand.

This lets you drag both the length and the rotation, and see the result before committing.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type CROSSHAIR.
  3. Pick the arc, circle or ellipse to mark.
  4. Drag to set the length and rotation of the centrelines, and click.

How it works

The centre point is taken from the picked object rather than from where you clicked, so the marks are genuinely centred regardless of how carefully you picked. The two lines are drawn through that point at the dragged rotation and its perpendicular.

Because the length is dragged rather than taken from a system variable, the marks can be made to overhang the object by whatever looks right at the scale you are working — which is the usual reason for drawing them by hand in the first place.

Notes and limits

  • Arcs, circles and ellipses only. These are the objects with a defined centre to mark.
  • Centrelines should be chain lines. Set the current layer or linetype before running it — the routine draws the geometry, it does not choose your drafting standard.
  • The result is two ordinary lines, so they can be trimmed, extended and edited normally.
  • One undo group covers both lines.

Download and details

NameCrossHair — centre-mark a curved object with draggable centrelines
DownloadCrossHair.lsp — 3.5 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandCROSSHAIR
Requiresnothing beyond a CAD platform with AutoLISP.
Source size3.5 KB, 98 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

  • Pen sizes and line types — the chain line convention centrelines should use
  • Dimensioning to metric standards — where centre marks fit in the conventions
  • 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