Author Topic: Break lines with gap lisp problem  (Read 509 times)

0 Members and 1 Guest are viewing this topic.

JeremyM

  • Mosquito
  • Posts: 2
Break lines with gap lisp problem
« 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.

ribarm

  • Water Moccasin
  • Posts: 2122
  • Marko Ribar, architect
Re: Break lines with gap lisp problem
« Reply #1 on: March 08, 2019, 12:08:15 PM »
Change :

Code: [Select]
(command "break" ename pt1 pt2)

To :

Code: [Select]
(command "break" ename "_non" pt1 "_non" pt2)
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

CAB

  • Global Moderator
  • Seagull
  • Posts: 10362
Re: Break lines with gap lisp problem
« Reply #2 on: March 08, 2019, 12:14:42 PM »
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
I've reached the age where the happy hour is a nap. ()
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

JeremyM

  • Mosquito
  • Posts: 2
Re: Break lines with gap lisp problem
« Reply #3 on: March 25, 2019, 04:42:35 PM »
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.

Dlanor

  • Newt
  • Posts: 162
Re: Break lines with gap lisp problem
« Reply #4 on: March 25, 2019, 06:07:09 PM »
Try the attached. Will work with lines, polylines, arcs, circles, ellipses and splines, but not xlines.

BlackCADDER

  • Mosquito
  • Posts: 17
Re: Break lines with gap lisp problem
« Reply #5 on: March 26, 2019, 03:28:27 AM »
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 ...
"Permission to ask a question, sir... "
"Permission granted, Baldrick, as long as isn't the one about where babies come from."