Change Block Base Point using an AutoCAD Lisp:
If you are an AutoCAD user, you might have encountered situations where you need to change the base point of a block. The base point is the point that defines the insertion point, rotation, and scale of a block when you insert it into a drawing. Sometimes, you might want to move the base point to a different location within the block geometry or align it with another point in the drawing.
However, changing the base point of a block is not a straightforward task in AutoCAD. You cannot simply use the Move or Rotate commands to modify the base point. You need to use the Block Editor or the Refedit command to edit the block definition, and then update all the block references in the drawing. This can be time-consuming and tedious, especially if you have many blocks to modify. Fortunately, there is a faster and easier way to change the base point of a block in AutoCAD using Lisp.
This program allows the user to change the base point for all block references of a block definition in a drawing. The program offers two commands: CBP & CBPR.
When a command is entered into the AutoCAD command line, the program will ask the user to select a block and then change its base point. Once the user selects a valid block, they will be prompted to specify a new base point relative to the selected block.
After selecting a block in AutoCAD, you can modify its base point or reference point. This will automatically change the block definition and block reference, depending on the command used. If the block has attributes, an ATTSYNC operation will also be performed to ensure that all attributes are correctly positioned relative to the new base point.
Finally, the active viewport is updated to reflect changes made to all instances of the block, including those that are rotated and scaled in any UCS plane. Please Note: A REGEN is required if the UNDO command is used to undo the operations performed by this program.
What is the AutoCAD LISP and how do you upload it to AutoCAD?
CBP (Change Base Point), this command will retain the insertion point coordinates for all references of the selected block. Hence visually, the block components will be moved around the insertion point when the base point is changed.
CBPR (Change Base Point Retain Reference Position), this command will retain the position of each block reference of the selected block. Hence, each block reference will be moved to retain the visual position when the base point is changed.
You can download the lisp from here.
Comments
Post a Comment
Write a comment