TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: JeremyM on March 08, 2019, 10:40:15 AM
-
Good day all,
I've been using this lisp for many versions of cad. but in 2018 and 2019 versions it isn't working correct anymore. The gap will be offset to one side more than the other or it will put the gap all on one side. The strange thing is it on occasion still works.
I know there are other lisps out there we just like the simplicity of this one in that all you have to do is click on the line to break then click on the breaking point. Although it would be nice to have it work on arcs and splines.
Any help would be greatly appreciated.
-
Change :
(command "break" ename pt1 pt2)
To :
(command "break" ename "_non" pt1 "_non" pt2)
-
Welcome to the Swamp Jeremy.
So other break routines you may enjoy.
------------- Break & Trim -----------------
http://www.theswamp.org/index.php?topic=10370.0 Break Objects by CAB - Break objects with crossing objects
http://www.theswamp.org/index.php?topic=24646.0 Trim with objects [CookieCutter] by Joe Burke
http://www.theswamp.org/index.php?topic=21324.msg258512#msg258512 by RonJon
http://www.theswamp.org/index.php?topic=35832.0 Block Break Lee
-
OK, sorry for the delay I've been working monstrous hours. I tried the "non" fix but no dice. I have attached a PDF of the breakdown of what happens. I'm confused?
And thanks CAB looking into those now. The problem I found with some of the other lisps I found is the guys here are spoiled. They want to just click click done. Not have to go through a bunch of options or boxes.
Thanks guys.
-
Try the attached. Will work with lines, polylines, arcs, circles, ellipses and splines, but not xlines.
-
maybe this small change to your code will crack the mystery
replace (command "break" ename pt1 pt2) with (command "break" ename "First" pt1 pt2)
Good luck to your family ...