[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.
Draw Rectangle from Midpoint
Tip# 3623 By Walt Bedinger On 22-Apr-2011
Rated By 1 users Downloaded : 1149
Categories : Linear Objects
Software type : AutoCAD 2012
Rename File To : mprec.lsp
Draw a rectangle starting at the center point, as opposed to one of the corners.

This routine by Walt Bedinger allows you to draw a rectangle in AutoCAD starting at the midpoint, or center point (as opposed to one of the corners). Begin by loading the LISP file, then type in the command MpRec. Pick the center of the rectangle, then either drag the cursor or enter the x and y dimensions. The rectangle will be created using your start point as the center. This routine is especially handy if you are creating multiple rectangles with the same dimensions, because it remembers the previous size selection.   


Average Rating:

User comments
Comment by P,Keith
Posted on 2011-04-26 09:39:21
1) thanks for routine... 2) Would be nice to see dynamic outline of rectangle whilst it is being determined by picking points. that is if it were possible to include that in code. 3) thanks again
Comment by Hicks,Michelle
Posted on 2011-04-26 20:02:11
When i put in the distances as 50,50 i get a rectriangle that is 76.604,64.279? The lisp file is the same name as the one downloaded. No osnaps. What is going wrong?
Comment by Cooper,Kent
Posted on 2011-10-18 14:38:49
Michelle Hicks: If you enter the distances as "X,Y", it will use that point as if you picked it on-screen. If you enter the distances with a preceding @ (as in the prompt after you've done it once), i.e. "@X,Y", you should get what you want.
Comment by Cooper,Kent
Posted on 2011-10-18 15:03:08
Easy enough to get used to, if you're aware of it, but not what I expected -- if you type in distances (including the @), they turn out to be the distances from the designated midpoint TO A CORNER, and NOT the overall size of the resulting rectangle (as they are in a regular Rectangle command).