How to use extrim command in autolisp

How to use extrim command in autolisp

Anonymous
Not applicable
4,565 Views
7 Replies
Message 1 of 8

How to use extrim command in autolisp

Anonymous
Not applicable

I want use extrim command in my lisp program. But, autolisp not recognizing the command. Can anyone suggest how to use it?

0 Likes
4,566 Views
7 Replies
Replies (7)
Message 2 of 8

marko_ribar
Advisor
Advisor

Analyze last 2 codes posted here :

 

http://www.cadtutor.net/forum/showthread.php?93620-Explode-Blocks-Then-Trim-Rectangle-amp-Circle-Ins...

 

- you call extrim with (etrim ename pt), but be aware that your highlight sysvar will be reset to 0, so return it back afterwards to 1...

 

M.R.

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes
Message 3 of 8

Anonymous
Not applicable

Thanks for the reply. I'll try this.

0 Likes
Message 4 of 8

phanaem
Collaborator
Collaborator

Try

 

(if
  (cond
    (etrim)
    (T (load "extrim.lsp" "") etrim)
  )
  (etrim <ename> <point>)
  )

where <ename> is the ename of the cutting object and <point> define the cutting side

0 Likes
Message 5 of 8

saifumk8
Advocate
Advocate

the link is not working it's showing:

"The page you requested does not exist"

0 Likes
Message 6 of 8

saifumk8
Advocate
Advocate

all express tools lisp code is available in below link:

 

C:\Program Files\Autodesk\AutoCAD 2015\Express

 

 

0 Likes
Message 7 of 8

saifumk8
Advocate
Advocate

thanks

0 Likes
Message 8 of 8

saifumk8
Advocate
Advocate

thank you very much it's working with below code:

 

(setq ent1 (entsel))
(setq pt1 (getpoint))

(if
(cond
(etrim)
(T (load "extrim.lsp" "") etrim)
)
(etrim (car ent1) pt1)
)

0 Likes