BIGAL Posted January 26, 2013 Share Posted January 26, 2013 I am trying to use Xtrim in a lisp and it will not work once I add arcs to PLine any ideas. (setq obj (car (entsel "\npick pline"))) (setq pt1 (getpoint "\nPick point on outside")) (load "extrim") (etrim obj pt1) Quote Link to comment Share on other sites More sharing options...
Tharwat Posted January 26, 2013 Share Posted January 26, 2013 Maybe this way .. (c:extrim) Quote Link to comment Share on other sites More sharing options...
marko_ribar Posted January 26, 2013 Share Posted January 26, 2013 Try this : (defun c:test ( / obj pt ) (load "extrim") (acet-error-init (list (list "cmdecho" 0 "highlight" 0 "regenmode" 1 "osmode" 0 "ucsicon" 0 "offsetdist" 0 "attreq" 0 "plinewid" 0 "plinetype" 1 "gridmode" 0 "celtype" "CONTINUOUS" "ucsfollow" 0 "limcheck" 0 ) T ;flag. True means use undo for error clean up. '(if redraw_it (redraw na 4)) );list );acet-error-init (setq obj (car (entsel "\nPick pline"))) (setq pt (getpoint "\nPick point on side to extrim : ")) (etrim obj pt) (acet-error-restore) (princ) ) And I've found a little mistake in extrim.lsp (after command "copy" - function doesn't finish so I added (while (> (getvar 'cmdactive) 0) (command "")) ) Compare my version and your - check this post... M.R. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted January 27, 2013 Author Share Posted January 27, 2013 Thanks marko-ribar how did you find the answer. Quote Link to comment Share on other sites More sharing options...
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.