t_olmos Posted June 29, 2009 Posted June 29, 2009 LOOKING FOR A LISP FILE FOR THE FOLLOWING: While object is selected PULL DOWN MENU, EDIT COPY W/ BASEPOINT (_copybase) _copybase Specify Base Point: 0,0 command: e PULL DOWN MENU, EDIT PASTE AS BLOCK (_pasteblock Duplicate definition of Block _oblique ignored.) Specify Insertion Point: 0,0 command: _LayerP Quote
Lee Mac Posted June 29, 2009 Posted June 29, 2009 Quick and dirty: (defun c:pstblk (/ *error* vl ov ss) (defun *error* (msg) (if ov (mapcar 'setvar vl ov)) (if (not (wcmatch (strcase msg) "*BREAK,*CANCEL*,*EXIT*")) (princ (strcat "\n<< Error: " msg " >>"))) (princ)) (setq vl '("CMDECHO" "OSMODE") ov (mapcar 'getvar vl)) (mapcar 'setvar vl '(0 0)) (if (setq ss (ssget)) (progn (command "_.copybase" '(0 0 0) ss "") (command "_.pasteblock" '(0 0 0)) (command "_.erase" ss ""))) (mapcar 'setvar vl ov) (princ)) Quote
t_olmos Posted June 29, 2009 Author Posted June 29, 2009 thanks lee, works good will save me some time here, thanks again Quote
Lee Mac Posted June 29, 2009 Posted June 29, 2009 thanks lee, works good will save me some time here, thanks again No probs mate Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.