• 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

XRAY LISP: Dump Every Property of an AutoCAD Object

August 3, 2026

XRAY dumps every ActiveX property and method of a picked object to the text window. This is the single most useful tool there is when writing your own routines.

What XRay does

When you need to know what a piece of geometry actually exposes — what a dynamic block calls its parameters, whether a leader stores its landing point as a property or a DXF group, what an object’s real class name is — you point this at it and read the answer, instead of guessing.

Two commands, one difference. XRAY inspects the top-level object you pick, so picking anything inside a block reports the block reference itself. XRAYN inspects the nested object, so picking inside a block or xref reports the individual line, arc or text you actually clicked, not its container.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type XRAY, or XRAYN to look inside a block.
  3. Pick the object.
  4. Press F2 if the text window is not already visible.

How it works

The routine walks the object’s ActiveX interface and reports every property name it exposes along with its current value, plus the methods available on it.

It is read-only, and deliberately so. It inspects and reports, and never modifies the drawing — so it changes no system variables and opens no undo group. There is nothing to undo, and an empty undo entry would only get in the user’s way when they pressed U expecting to reverse whatever they were actually working on.

Several routines in this library are configured by editing a list of ActiveX property names — ATTCLONE, TEXTCLONE and FIELDSTAMP among them. This is how you find the names to put in them.

Notes and limits

  • Use XRAYN inside blocks and xrefs. Plain XRAY reports the container.
  • Output goes to the text window. Press F2.
  • It changes nothing — no system variables, no undo entry.
  • Not every listed property is writable. The dump tells you what exists, not what can be set.

Download and details

NameXRay — dump every ActiveX property and method of a picked object
DownloadXRay.lsp — 5.3 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandsXRAY, XRAYN
Requiresthe ActiveX layer (loaded automatically by the routine with vl-load-com).
Source size5.3 KB, 131 lines
Error handlingYes — a *error* handler restores every system variable it changed, on cancel as well as on error.
UndoNot needed — this routine only reads the drawing and changes nothing.
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

  • SPYGLASS LISP — hover-to-inspect, for looking at many objects quickly
  • ATTCLONE LISP — one of the routines configured by a property name list
  • AREASTAMP LISP — building field commands from property names
  • 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