REPLACE WITH BLOCK

Replace with block - Rhino Script
17/05/18 - Guillaume Evain
email gui.evain@gmail.com for questions

Input :
- Block to replace with
- Objects, groups and blocks to replace

Replaces Objects, Groups and Blocks with a new block definition.
If block is replaced, its rotation and scale transformations are applied to the replacement block.
The block is placed with matching lower center point of the bounding box.
Different block base points doesn't affect the location.

Screenshot: