Daily PainkillerCreator resource hub
Workbench online
LSP · v1.5 · Experimental

SELTOOLS

Seven tools in one command for selection, alignment and placement.

Runs on
AutoCAD · Windows
Command
SELTOOLS
Author
Myo Myint Maung

How to use

  1. 01

    Download and load

    Save SELTOOLS.lsp. Type APPLOAD in AutoCAD, choose the file and click Load. Reload the updated file to replace an older version.

  2. 02

    Choose a named tool

    Run SELTOOLS and click or type a named option. Enter accepts the displayed default; Esc cancels.

  3. 03

    Follow the prompts

    Use the sequence below for your chosen tool. Review the moved, skipped and failed messages. Use U to undo a movement operation.

Command options

ToolWhat it doesSteps
SelectSimilarHighlight current-space objects matching a reference by Layer, Block, Both or Colour. Block matches use the effective block name.Pick a reference and a match mode. Colour resolves ByLayer; ByBlock stays a stored key and equivalent ACI/RGB colours are not merged.
InsidePolylineHighlight objects inside or crossing a closed lightweight polyline boundary, excluding the boundary itself.Pick the boundary, then Inside or Crossing. Keep the whole boundary visible and in the current view plane; curved edges are sampled and approximate.
SelectionInsideRectangleSelect blocks whose geometry lies fully inside a closed rectangular polyline, including a rotated rectangle. Attached attributes are ignored.Run SELTOOLS, choose SelectionInsideRectangle and pick the rectangle. Selected blocks are highlighted; nothing moves.
MoveToMiddleFor each selected block, find the nearest point in WCS XY on each of two finite edges and move its geometry-bound centre to their midpoint. Attributes are ignored.Select blocks first, then pick two edges: lines, polylines, circles or arcs. Edges inside blocks or on locked layers can be used as references. Parallel edges are not required.
FollowCenterAlign block insertion points (BasePoint) or geometry-bound centres (GeometryCenter) to a reference block or circle. Choose X, Y or Both.Pick a reference, choose BasePoint or GeometryCenter, choose X/Y/Both, then select target blocks. Both places target anchors at the same XY position.
MoveWithDistancePlace the selected objects as one group at a final gap from the reference’s bounding edge. The other axis remains unchanged.Pick reference object, enter a nonnegative gap in drawing units, choose Left/Right/Up/Down, then select objects and press Enter.
InBetweenMove one object’s bounds centre—or the bounds centre of a selected group—to the XY midpoint of two reference anchors. Preserve spacing within a group.Pick two different reference objects, select objects to move, then press Enter. References use block insertion points, circle/arc centres or bounds centres for other objects.

Coordinates and distance

Directions use the drawing’s WCS X/Y axes. Moves preserve elevation, rotation and scale. MoveWithDistance measures an axis-aligned bounding-box gap, including text and attached attributes; it is not the shortest distance between curved edges.

References and groups

MoveWithDistance and InBetween accept blocks and other movable top-level objects in the current layout. Selected references remain fixed. Locked targets and objects without readable bounds are skipped. Multiple targets move by the same vector to preserve their spacing.

Rectangle and curve limits

The rectangle must be a closed four-vertex straight-edge LWPOLYLINE without thickness. Conservative geometry bounds may skip irregular blocks close to an edge. MoveToMiddle uses numerical curve minimisation and finite edges, so line endpoints can affect placement.

Test on a drawing copy first

Source reviewed only; this uploaded version has not been executed inside AutoCAD here. Test dynamic blocks, nested or scaled references, locked layers and your object types before project use. Geometry-based block checks skip Xrefs, MINSERT arrays and unreadable geometry; dynamic hidden geometry may influence bounds.

Movement tools use an Undo group. If a group move fails, completed moves are rolled back; if rollback is incomplete, use U. Esc can leave completed changes to undo.

View updates and releases