Need lisp for extrim ousdie rectangle /xplode blocks / delete

Need lisp for extrim ousdie rectangle /xplode blocks / delete

alsawadi.re
Contributor Contributor
853 Views
7 Replies
Message 1 of 8

Need lisp for extrim ousdie rectangle /xplode blocks / delete

alsawadi.re
Contributor
Contributor

Hello friends.. Plz I I have city plot with alot of blocks / text / mtext / polylines / splines/ lines etc.. 

I just want small part from that big plot by creating a rectangle and delete all outside objects including the crossed texts to the boundary of the rectangle.. Thanks 

0 Likes
Accepted solutions (3)
854 Views
7 Replies
Replies (7)
Message 2 of 8

Sea-Haven
Mentor
Mentor

If you use the EXTRIM function it has a different command name when using it in a lisp, its ETRIM. 

 

(if (null etrim) (load "extrim.lsp"))

(etrim obj pt1)

 

Another I use is Cookiecutter2_v1.0.lsp as name suggests.

 

 

0 Likes
Message 3 of 8

alsawadi.re
Contributor
Contributor

Thanks my friend.. Actually I am not used to write lisp routines.. If u can help me to write whole.. And thanks again

0 Likes
Message 4 of 8

3wood
Advisor
Advisor
Accepted solution

 You can also try EXPLODEALL.

 

0 Likes
Message 5 of 8

Sea-Haven
Mentor
Mentor
Accepted solution

Wblock is close just copies what you select. What is wrong with draw rectang and type EXTRIM all done. 

0 Likes
Message 6 of 8

ВeekeeCZ
Consultant
Consultant
Accepted solution

Try the Export Layout command if works for you.

The attached routine uses this command and matches a viewport size with the given rectangle.

It could fail on large drawings (as Layer Export does).

0 Likes
Message 7 of 8

alsawadi.re
Contributor
Contributor
That was perfect .. Thanks
0 Likes
Message 8 of 8

alsawadi.re
Contributor
Contributor
thanks it was powerfull tool
0 Likes