0 Members and 1 Guest are viewing this topic.
Probably off topic, but something like this is much more legible to me for picking multiple points.Code - Auto/Visual Lisp: [Select](defun c:foo (/ p1 p2) (while (and (or p1 (setq p1 (getpoint "\nPick first point: "))) (setq p2 (getpoint "\nPick next point: ")) ) (grdraw p1 p2 1) (setq p1 p2) ) (princ))
Guys, you missed the point - my example was not about prompting user for a points, but to visualise how the evaluations work, based on the user input.I just find getpoint function an easy way to return a value or nil (by using only the mouse).
Yes, I know. But are you starting to get my point (ronjonp and I just took your thread away from you by discussing a better getpoint procedure -i.e. the `whys' have started)?
But what about the grdraw feature?
Quote from: John Kaul (Se7en) on January 04, 2018, 11:46:34 AMBut what about the grdraw feature?That was just a recursive play. ...
Quote from: Grrr1337 on January 04, 2018, 11:52:41 AMQuote from: John Kaul (Se7en) on January 04, 2018, 11:46:34 AMBut what about the grdraw feature?That was just a recursive play. ...My getpointy is recursive...?
Awe (*sadface*)? You don't want mine in your archive?