View Full Version : centre point of a rectangle/box
jesse.86737
2005-05-02, 07:11 AM
i would like to see a osnap to find a centre point of a rectangle or box
Mike.Perry
2005-05-02, 09:03 AM
Hi
Take a look at any of the following OSnap methods to achieve this -
Mid Between 2 Points
Temporary Tracking Points
Point Filters
Have a good one, Mike
I created a toolbar button containing this string
I wish it was a standard osnap
It requires you to pick two points and it finds the midpoint.
It works while in other commands.
Maybe not exactly what you're looking for but hth.
non;'cal;(cur+cur)/2;
madcadder
2005-05-13, 08:25 PM
Add this to the POP0 of your MNS:
[--]
ID_Osmidpt3d [MidPoint &Between Two 3D Points]'mid3dpt
[--]
and load this lisp:
;;; created by Dave Pitzer per Autodesk website: "Applying Customization: A Different Midpoint Osnap"
(defun c:mid3dpt (/ |pt1| |pt2|)
(setq |pt1| (getpoint "\nPick first point: ")
|pt2| (getpoint |pt1| "\nPick second point: ")
)
(mapcar '+
|pt1|
(mapcar '/
(mapcar '- |pt2| |pt1|)
'(2.0 2.0 2.0)
)
)
)
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.