• 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

PARTWEIGHT LISP: Weigh a Flat Part From Its Outline

August 6, 2026

PARTWEIGHT works out what a cut plate part will weigh: select its outline, give a thickness and a material, and it reports the area, the volume and the weight. Select several outlines and it totals them.

What PartWeight does

This is the number that goes on a cutting list, prices a job, and decides whether two people can lift it.

The area is measured straight off the geometry you have already drawn. Typing the area in means working it out somewhere else first, which is both the slow part and the part that goes wrong.

Holes are handled the way a fabricator thinks about them: select the outline first, then the holes, and the holes are subtracted. A plate with a big central opening weighs what is left, not what it started as.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type PARTWEIGHT.
  3. Select the outline first.
  4. Then select the holes and cut-outs — they are subtracted.
  5. Give the thickness and material, and say whether the drawing is in inches or millimetres.

How it works

Units are asked for and the rest follows. Inches give area in square inches and weight in pounds; millimetres give square millimetres and kilograms.

Densities are held once, in pounds per cubic inch, and converted for metric by the exact factor 27.6799 — how many grams per cubic centimetre there are in a pound per cubic inch.

Holding one table and converting is what stops the two sets of figures drifting apart. Two hand-maintained tables agree on the day they are written and not for long after.

Notes and limits

  • Select the outline before the holes. The order is what tells them apart.
  • Outlines must be closed for an area to mean anything — see QuickTally for what an unclosed boundary reports.
  • Tell it the right units. The drawing does not say, and the answer is wrong by a factor of thousands if you guess.
  • It only reads the drawing, so there is nothing to undo.

Download and details

NamePartWeight — weigh a flat part from the outline you have already drawn
DownloadPartWeight.lsp — 12.4 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandPARTWEIGHT
Requiresthe ActiveX layer (loaded automatically by the routine with vl-load-com).
Source size12.4 KB, 288 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

  • TALLYAREA LISP — area totals, and why an open boundary still reports one
  • SUMAREA LISP — a live area total with holes subtracted
  • Wisey’s Steel Shapes — section profiles to published dimensions
  • 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