Add Objects to Block
|Function Syntax||Add2Block / Remove|
|View HTML Version||AddObjectsToBlockV1-1.html|
The program is built around my AddObjectsToBlock subfunction, which may be used separately if necessary. The code demonstrates how to call this subfunction with the correct arguments, and, at the same time provides what is hopefully a very useful program.
The subfunction incorporates all objects contained in a supplied SelectionSet into the block definition of the specified block. Positions of the new objects in the block definition are determined relative to the supplied reference insert.
Following modification of the block definition, the active viewport will be regenerated to display changes throughout all inserts.
Program will work in all UCS/Views.
A Remove program is also included to enable the user to remove objects from block definitions.
Example of Usage
Instructions for Running
Please refer to How to Run an AutoLISP Program.