Thursday, April 30, 2009

Rotation of BLOCK

This one is a short-cut for ROTATE command.

Suppose in an Electro Mechanical drawing we have to rotate a block exactly with refer to the rotation angle of another instance of the same block or some other block. It’s a tiresome job to first findout the angle and then gives the same. Match property will not work here.

The below LISP routine will do the work for you as it will ask to first select the source block (so as to extract the rotation angle) and then it will apply this angle to the targeted block. Source and Target block may not be the same.

* Rotate-Block.lsp (1Kb)
This command change the rotation angle of block to a given angle (which can be extracted from another block).

Sequence of command lines for this routine:-

Command: RBL
Select SOURCE block:
Select TARGET block:

Download : Rotate-Block.lsp