0 Members and 1 Guest are viewing this topic.
Note that getpoint will accept a single integer or real number as the pt argument, and use the AutoCAD direct distance entry mechanism to determine a point. This mechanism uses the value of the LASTPOINT system variable in the Command Reference as the starting point, the pt input as the distance, and the current cursor location as the direction from LASTPOINT. The result is a point that is the specified number of units away from LASTPOINT in the direction of the current cursor location.
Typing a single numerical value at a getpoint prompt will return a point a distance equal to the given value along a line through the point given by the lastpoint system variable and the cursor:Quote from: getpoint documentationNote that getpoint will accept a single integer or real number as the pt argument, and use the AutoCAD direct distance entry mechanism to determine a point. This mechanism uses the value of the LASTPOINT system variable in the Command Reference as the starting point, the pt input as the distance, and the current cursor location as the direction from LASTPOINT. The result is a point that is the specified number of units away from LASTPOINT in the direction of the current cursor location.
Typing a single numerical value at a getpoint prompt will return a point a distance equal to the given value along a line through the point given by the LASTPOINT system variable and the cursor:
(while (not (vl-consp p)) (initget 129) (setq p (getpoint "\nPoint please: ")))