PWZ LISP: Scaled Power-Line Zigzag Symbol (Free AutoLISP Download)
PWZ converts a selected polyline into a properly scaled power-line indicator by drawing periodic zigzag "teeth" clusters along its path, with plain segments between clusters, the standard electrical/power-line cartographic symbol. Unlike AutoCAD's built-in linetypes, the zigzag size here is entered directly in real drawing units, so it stays correctly scaled regardless of the drawing's plot scale.
PWRZIG-bgol (Scaled Power-Line Zigzag Symbol)
Command Type: AutoLISP routine (works in AutoCAD, BricsCAD, ZWCAD and most AutoLISP-compatible CAD platforms)
Developed by: BGol Community, bgol.in
Inspired by the general concept of scaled power-line symbol generation used in survey and utility drafting. This is an original, independently written routine, new file name, new command name, new source code, created so the CAD community has a free, editable, open-source alternative.
Overview
PWZ converts a selected polyline into a properly scaled power-line indicator by drawing periodic zigzag "teeth" clusters along its path, with plain segments between clusters, the standard electrical/power-line cartographic symbol. Unlike AutoCAD's built-in linetypes, the zigzag size here is entered directly in real drawing units, so it stays correctly scaled regardless of the drawing's plot scale.
How to Use
- Load
PWRZIG-bgol.lspinto your CAD session (drag-and-drop the file onto the drawing window, or use theAPPLOADcommand). - Type
PWZat the command line and press Enter. - Select the polyline representing the power line route.
- Enter the zigzag amplitude, tooth spacing, and cluster interval, or press Enter at each prompt to accept the shown defaults.
- Zigzag clusters are generated along the route at the given interval and drawn as short polylines on layer
BGOL-PWZ, layered on top of the original route (which is left untouched).
Why Use It
- Correctly scaled, the zigzag size is defined in real drawing units, so it stays consistent regardless of plot/annotation scale, unlike AutoCAD's built-in linetypes.
- User control, amplitude, tooth spacing, and cluster interval are all adjustable, so the symbol can be tuned to office drafting standards.
- No manual drafting, saves manually drawing repeated zigzag segments by hand along a long power line route.
- Non-destructive, the underlying route geometry (length, path) stays intact; only the zigzag overlay is added.
Where to Use It
- Indicating overhead or underground power line routes on survey base maps, utility drawings, or infrastructure design drawings.
- Any drafting task needing standard electrical/power-line cartographic symbology applied consistently along an arbitrary polyline path.
Notes
- Each zigzag cluster is centered on the polyline's tangent direction at that point, so clusters follow curves correctly, not just straight segments.
- Clusters are spaced at the entered interval, starting at half the interval from the polyline's start, leaving plain sections of the base route visible between clusters.
- Source code is fully open, feel free to study, modify, and redistribute it under the same open, free-for-all spirit.
Credits
Developed and shared for the CAD community by BGol Community. Website: https://bgol.in/ Free and open-source, use it, modify it, share it, for personal or commercial work alike.
Frequently Asked Questions
PWZ is a standard AutoLISP routine, so it runs in AutoCAD, BricsCAD, ZWCAD, and most other AutoLISP-compatible CAD platforms without modification.
Each zigzag cluster is centered on the polyline's tangent direction at that point, so clusters follow curves correctly, not just straight segments.
Correctly scaled, the zigzag size is defined in real drawing units, so it stays consistent regardless of plot/annotation scale, unlike AutoCAD's built-in linetypes.
Yes. PWZ is fully open-source and free to use, modify, and redistribute for both personal and commercial work, developed and shared by the BGol Community.
Drag and drop PWRZIG-bgol.lsp onto your open drawing window, or load it through the APPLOAD command, then type PWZ at the command line to run it.
๐ค About BGol Community
BGol Community of Advanced Surveying builds and shares free, open-source tools for the survey and CAD drafting community.
๐ Made with โค๏ธ by BGol Community of Advanced Surveying
Free, open-source, and built for the CAD community, for personal or commercial use, always.