Wednesday, September 3, 2008

Rotating any entity in exact 90° direction

Just today, a friend of mine has asked me to make a LISP file for him from which he can able to rotate a single entity in the exact 90° direction and only when he picks it.
Its not so hard. We can use the "ROTATE" command inside the LISP file. And the entity is rotated with respect to the POINT where you picked it. Where as while using builtin AutoCAD command "ROTATE" a user has asked for 3 prompts, Select Objects + Base point + Rotation Angle.

* ROT90.lsp (1Kb)
This is a command for rotating any entity in exact 90° direction.

Sequence of command lines for this routine:-

Command: ROT90
Select object:

Download : ROT90.lsp

No comments:

Post a Comment