simple lisp to insert a block at +x, +y from the insert point

Status
Not open for further replies.

la firminoise

Usenet Archive
Joined
Feb 16, 2001
Messages
10
Reaction score
0
i need a simple lisp to insert a block but not at the point of insert but at a value that i could choose from it per exemple insert at 2,3,0 from the point on insert i ve choose

i use autocad 2002 french
 
(defun C:XBLK
(setq Blk (getstring "\nBlock to insert: ")
InsPt (getpoint "\nPick Insert Point: ")
XDif (getdist "\nOffset in X direction: ") YDif (getdist "\nOffset in Y direction: ") ZDif (getdist "\nOffset in Z direction: ") InsPt (list (+ XDif (car InsPT)) (+ YDif (cadr InsPT)) (+ Zdif (caddr InsPT)) ) ;; list ) ;; setq (command "_.insert" Blk InsPt "" "" "") (princ) ) ;; defun ___

"la firminoise" wrote:

i need a simple lisp to insert a block but not at the point of insert but at a value that i could choose from it per exemple insert at 2,3,0 from the point on insert i ve choose
 
Status
Not open for further replies.

Latest threads

Back
Top