Jump to content

Extrim not working in lisp


BIGAL

Recommended Posts

I am trying to use Xtrim in a lisp and it will not work once I add arcs to PLine any ideas.

 

Extrim.jpg

 

(setq obj (car (entsel "\npick pline")))
(setq pt1 (getpoint "\nPick point on outside"))
(load "extrim")
(etrim obj pt1)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...