要检索Y坐标而不是点的值,只需替换以下代码:
- ...
- (setq pt1 (getpoint "\nplease locate point for Y:"))
- (setq dy1 (cadr pt1))
- (setq pt2 (getpoint "\nplease locate point for X:"))
- (setq dy2 (cadr pt2))
- ...
有了这个:
- ...
- (if (or (not (setq e (entsel "\nPlease choose an object: ")))
- (not (setq dy1 (getreal "\nFirst Y coordinate:")))
- (not (setq dy2 (getreal "\nSecond Y coordinate:"))))
- (exit)
- )
- ...
|