Change Block Insertion

Function Syntax CBI / CBIR
Current Version 1.3
Download ChangeBlockInsertionV1-3.lsp
View HTML Version ChangeBlockInsertionV1-3.html

Program Description

This program allows the user to quickly change the insertion point (base point) of a block definition in a drawing.

The user is prompted to select a block to use as a reference, then select a new base point relative to the selected block. The block definition will subsequently be modified to reflect the new base point.

Should the selected block be attributed, an ATTSYNC operation will also be performed to ensure attributes are in the correct positions relative to the new base point.

Finally, the active viewport is regenerated to reflect the changes throughout all references of the block.

Note also that the program will work in all UCS/Views, and on rotated/scaled blocks.

There are two modes of operation depending upon whether the user wishes to retain the block position, or the coordinates of the block reference insertion point. CBI will retain insertion point coordinates, hence visually, the block components will move around this point; whereas CBIR will retain the positions of the block components themselves, therefore shifting the position of the block reference insertion point to suit.

Example of Usage

Change Block Insertion.gif

Instructions for Running

Please refer to How to Run an AutoLISP Program.

textsize

increase · reset · decrease