[Search tip detail and code files using keywords, tip number, author name, etc ]
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Offset to Center
Tip# 3216 By David White On 14-Jun-2009
Rated By 1 users Downloaded : 425
Categories : 2D Editing
Software type : AutoCAD 2010
Rename File To : ho_org.lsp,__MACOSX/,__MACOSX/._ho_org.lsp
This routine will offset an object half the distance you define.

David White sends us a routine that he uses to offset objects centered on an object. "I really call this file HO.LSP, but for storage I call it HO_ORG.LSP as I use in other routines. Do you ever have to offset something directly centered between two points? You can do it quick with this little routine. It will become a second nature command once you get used to it and become absolutely indispensable."

Notes from Cadalyst Tip Patrol: Essentially this routine will offset an object half the distance you define. This allows you to make sure the object you are offsetting is centered between the two objects you are creating. Start the command (after loading the routine) by typing HO on the command line. Enter the distance you want the two new points to be apart. The routine halves this number, using the half value to offset the objects.


Average Rating:

User comments
Comment by Paterson,Colin
Posted on 2009-06-17 09:38:34
Why not use AutoCAD's built-in "Mid Between 2 Points" (_m2p) command?
Comment by tan,michael
Posted on 2009-06-18 23:40:12
or use the 'cal command to formulate the midpoint between your enitities. i.e. after typing the cal command, the formula could be (end+per)/2

Log In