Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JStephen on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

AutoCAD 2005 Tip - Know how to snap midpoint between two points

  • Thread starter Thread starter Ricky
  • Start date Start date
Status
Not open for further replies.
R

Ricky

Guest
As there is no direct snap to locate midway point between two points, we can acheive the same by using the command line calculator 'CAL. The expression to be used is "MEE" or "(end+end)/2", which stands for midpoint between two endpoints. For example, to start a new line at the midpoint between endpoints of two lines, draw two lines at an angle to each other and start the line command again and at the Specify First Point prompt enter 'cal and at the Initializing expression prompt enter mee, now selec the two points as prompted. The line initiated in step 2 will start at the midpoint between the selected endpoints, and you will be prompted for the next point.
I hope this tip will help.
 
Mid Between Two Points

Wouldn't using the Mid Between Two Points Snap be more practical and less esoteric?
 
Hi sundance49,
As far as I know there is no direct snap to locate a point midway between two endpoints in space for AutoCAD 2000-2006.
Which version are you using?
Regards.
 
Snap to midpoint

Hi!

A solution is a short AutoLisp macro:
(defun midpt (/ a b)
(initget 1)
(setq a (getpoint "\nFirst point: "))
(initget 1)
(setq b (getpoint "\nSecond point: "))
(setq pt (polar a (angle a b) (/ (distance a b) 2.0)))
)
Using this you should copy it to visual lisp editor, save it, and load to Autocad. Then choose a command eg LINE, enter (midpt) and follow the instructions in the command line.
There is a possibility to load it automatically or make an icon-button too.
If you have any problem do not hesitate to ask me.

Best regards
Halaszm
 
Mid point between to ends

Hi,
Sorry to take so long getting back to you. I use Autocad 2006. But I do have 2007 at home. If what you are attempting to do is being done in a version lower than 2005 I guess you would have a problem.
 
Snap to midpoint

Hi sundance49,

Why do you think so? It works in all version of AutoCad which understand Autolisp.

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top