Author Topic: asmi tools bri.lsp modification needed  (Read 227 times)

0 Members and 1 Guest are viewing this topic.

notredave

  • Newt
  • Posts: 67
asmi tools bri.lsp modification needed
« on: May 09, 2019, 12:12:43 PM »
Good afternoon,

Let me start this off by saying that this can also be found here:
https://www.cadtutor.net/forum/topic/67569-asmi-tools-brilsp-modification-needed/


Can somebody be so kind to modify an Asmi lisp routine (attached) to automatically adjust the break distance based on dimscale factor of drawing? It is defaulted to 1/8". Also, there are times when I hit ctrl+c to cancel lisp, I lose what my osmode was set to. I have to check all the osnaps I want again. Can this be included in this lisp routine not to lose my osnaps?

 P.S. I now know not to do ctrl-c to cancel lisp.

Thank you very much in advance,

David


ronjonp

  • Needs a day job
  • Posts: 6938
Re: asmi tools bri.lsp modification needed
« Reply #1 on: May 09, 2019, 02:13:05 PM »
For the dimscale setting:
Code - Auto/Visual Lisp: [Select]
  1. ;; Change this
  2. (setq bi:bdist 0.125)
  3. ;; To this
  4. (setq bi:bdist (* (getvar 'dimscale) 0.125))

Windows 10 x64 - AutoCAD /C3D 2020

Custom Build PC

notredave

  • Newt
  • Posts: 67
Re: asmi tools bri.lsp modification needed
« Reply #2 on: May 09, 2019, 02:44:18 PM »
ronjonp,

I appreciate your time and looking at this. I made your change but now when I load it, it returns with ; error: malformed list on input. See my change in pic attached.


notredave

  • Newt
  • Posts: 67
Re: asmi tools bri.lsp modification needed
« Reply #3 on: May 09, 2019, 02:45:55 PM »
better picture...

ronjonp

  • Needs a day job
  • Posts: 6938
Re: asmi tools bri.lsp modification needed
« Reply #4 on: May 09, 2019, 02:53:45 PM »
Add a closing paren after: 0.125)))

Windows 10 x64 - AutoCAD /C3D 2020

Custom Build PC

notredave

  • Newt
  • Posts: 67
Re: asmi tools bri.lsp modification needed
« Reply #5 on: May 09, 2019, 02:56:54 PM »
ronjonp.....you are the man! Thank you very much, works like a charm.

Thanks again,
David

ronjonp

  • Needs a day job
  • Posts: 6938
Re: asmi tools bri.lsp modification needed
« Reply #6 on: May 09, 2019, 03:20:50 PM »
ronjonp.....you are the man! Thank you very much, works like a charm.

Thanks again,
David
Glad to help :)

Windows 10 x64 - AutoCAD /C3D 2020

Custom Build PC