Rotate Blocks to Two-Point Angle
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | RMBA |
|---|---|
| Category | Block Tools |
| Author | BGol Community |
| Source | thevijayparmar/bgol-cad-lisps |
| License | MIT |
| Requirements | AutoCAD (full version, not LT), BricsCAD; no Express Tools needed. |
| Prompt language | English |
| Files | ROTBLKS-bgol.lsp (4 KB) |
| Added | 2026-10-26 |
| Download the original fileSource repository | |
RMBA sets the rotation of all selected block references to the angle defined by two picked points, each block turning about its own insertion point.
RMBA is an AutoLISP routine for aligning many blocks to one direction. When fixtures, trees or signs placed along a road or wall need to follow the angle of that line, it does the job in one command instead of rotating each block separately.
Overview
After the blocks are selected, two reference points are requested. The angle between them is calculated and written directly to each block's Rotation property, so the result is an absolute angle rather than an increment. Each block turns about its own insertion point. A LINE is also drawn between the two points on layer BGOL-RMBA, and the applied angle is reported in degrees.
How to use it
- Load ROTBLKS-bgol.lsp with APPLOAD.
- Type RMBA at the command line.
- Select the blocks to rotate and press Enter.
- Pick the first point of the direction.
- Pick the second point; all blocks turn to that angle.
Notes and limitations
- An indicator line is drawn between the two points on layer BGOL-RMBA; delete it if you do not need it.
- The angle is computed with AutoLISP's angle function; with a UCS other than World active the result may differ from what you expect.
- The block's previous rotation is overwritten, not added to. In attributed blocks the attribute text orientation may follow depending on the block's settings.
- The change can be reversed with UNDO.
- License: the repository's LICENSE file is MIT; the file header also states the code is free to use, modify and share.
- The repository was published in 2026 and the amount of testing is not stated; try it on a copy of the drawing first.
Source and license
This tool is not made by eplisp. The file is published unchanged under its author's license; copyright stays with the author.
- ROTBLKS-bgol.lsp (4 KB)
- License text
References
- Source repository: thevijayparmar/bgol-cad-lisps – https://github.com/thevijayparmar/bgol-cad-lisps/tree/3acbe32f71b489f4c81dcd9372f989591a9be858/Block%20Lisps/Rotate%20Multiple%20Blocks
- Author: BGol Community – https://bgol.in/
- License: MIT – https://github.com/thevijayparmar/bgol-cad-lisps/blob/3acbe32f71b489f4c81dcd9372f989591a9be858/LICENSE
Found a mistake, or are you the author of this tool? Request a correction or removal