TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: notredave on May 09, 2019, 12:12:43 PM

Title: asmi tools bri.lsp modification needed
Post by: notredave 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

Title: Re: asmi tools bri.lsp modification needed
Post by: ronjonp 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))
Title: Re: asmi tools bri.lsp modification needed
Post by: notredave 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.

Title: Re: asmi tools bri.lsp modification needed
Post by: notredave on May 09, 2019, 02:45:55 PM
better picture...
Title: Re: asmi tools bri.lsp modification needed
Post by: ronjonp on May 09, 2019, 02:53:45 PM
Add a closing paren after: 0.125)))
Title: Re: asmi tools bri.lsp modification needed
Post by: notredave on May 09, 2019, 02:56:54 PM
ronjonp.....you are the man! Thank you very much, works like a charm.

Thanks again,
David
Title: Re: asmi tools bri.lsp modification needed
Post by: ronjonp 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 :)