Justify Block Base Point

See also Change Block Base Point.

Function Syntax JBP
Current Version 1.1
Download JustifyBasePointV1-1.lsp
View HTML Version JustifyBasePointV1-1.html
Donate

Program Description

This program allows the user to change the base point location for multiple blocks to one of nine standard justifications.

Upon issuing the command syntax JBP (Justify Base Point) at the AutoCAD command-line, the user is prompted to make a selection of blocks for which to modify the base point location. As the program will modify the block definition for each distinct block in the selection, the user is only required to select one reference of a given block in order to change the base point for all other references of the block - the program will automatically ignore multiple references of the same block in the selection.

Following a valid selection, the user is presented with a dialog interface through which one of nine standard justification positions may be selected (Top Left, Top Center, Top Right, Middle Left, Middle Center, Middle Right, Bottom Left, Bottom Center, Bottom Right). The user may also choose whether the modification to the base point should retain the visual position of the block references, or retain the coordinates of the block insertion points.

Upon clicking the OK button to submit the selections, the program will modify the block definition of each distinct block in the selection accordingly. If one or more of the selected blocks is attributed, an ATTSYNC operation will be performed to ensure all attributes are in the correct positions relative to the new base points.

Finally, the drawing is regenerated to reflect the changes across all references of the modified blocks.

Please Note: A REGEN is required if the UNDO command is used to undo the operations performed by this program.

Program Interface

Justify Base Point Dialog

Demonstration

Justify Base Point Demo

See also Change Block Base Point.

Instructions for Running

Please refer to How to Run an AutoLISP Program.

textsize

increase · reset · decrease

Designed & Created by Lee Mac © 2010