Matjaz Udovc
Usenet Archive
- Joined
- Feb 6, 2004
- Messages
- 9
- Reaction score
- 0
This will probably take less then a second to solve for someone who knows Lisp a bit...
How do I complete this simple routine that will prompt for a basepoint (X,Y,Z), prompt for offset distance (d) and then insert a block at a point X-d,Y,Z.
Here's how I've started it but I'm stuck at putting the insertion point into it:
(defun c:rout1
(setq bp (getpoint "Basepoint : ")
(setq of (getreal "Offset : "))
(command "-insert" "myblock" (- bp (of 0 0)) "1" "1" "0")
)
How do I complete this simple routine that will prompt for a basepoint (X,Y,Z), prompt for offset distance (d) and then insert a block at a point X-d,Y,Z.
Here's how I've started it but I'm stuck at putting the insertion point into it:
(defun c:rout1
(setq bp (getpoint "Basepoint : ")
(setq of (getreal "Offset : "))
(command "-insert" "myblock" (- bp (of 0 0)) "1" "1" "0")
)