TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: mailmaverick on July 31, 2017, 05:05:01 AM

Title: Overkill*.lsp
Post by: mailmaverick on July 31, 2017, 05:05:01 AM
Hello
I'm using AutoCAD 2014 and I have to use OverkIll in LISP routine. I have seen some routines on the internet in which to use OverKILL in LISP, we have to do following ;-

(load "overkill.lsp")
(setq ss (ssget))
(acet-overkill2 (list ss 0.0001 nil T nil nil))

However, when I run the above routine, it gives error in load command and acet command :-

Error: LOAD failed: "overkill.lsp"; reset after error

Error: no function definition: ACET-OVERKILL2; reset after error

Then I searched my entire computer for the lisp file but there is no overkill.lsp in my entire computer.
In some pages on the internet, I could see (load "overkillsup.lsp") but the same is also no present on my computer.

However, I'm able to use OVERKILL command in AutoCAD and all other Express Tools.

Please see attached DWG file in which there is a closed polyline which is not getting converted into region because its vertices are overlapping. If there is any other solution to correct this problem (I just want to convert it into region), please let me know.

Title: Re: Overkill*.lsp
Post by: GP on July 31, 2017, 06:42:30 AM
Since AutoCAD2012 "overkill" is a built-in command.

(setq ss (ssget)) 
(command "-overkill" ss "" "")
Title: Re: Overkill*.lsp
Post by: GP on July 31, 2017, 06:59:00 AM
Check the polyline...
Title: Re: Overkill*.lsp
Post by: mailmaverick on July 31, 2017, 08:51:21 AM
Thanks.
When I do overkill, it creates two entities :-
1.) Polyline (unclosed) having all vertices but last segment open.
2.) Polyline having two vertices.

My problem is :- I want the first polyline to be closed and the 2nd one to be deleted.
After using (command "-overkill" ss "" ""), how do I get hold of both entity names ?
Title: Re: Overkill*.lsp
Post by: Crookedmonk on August 04, 2017, 04:43:34 PM
I found this one where it will call out the coordinate locations for you. Maybe someone can modify it to either add a circle at each location or even fix the intersection.