TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: jrr114 on October 12, 2020, 12:11:07 PM

Title: Automatic numbering for detail bubbles
Post by: jrr114 on October 12, 2020, 12:11:07 PM
I am looking for a lisp routine to automatically number blocks sequentially like the ones I am attaching.   Do you have anything in your treasure chests?
Title: Re: Automatic numbering for detail bubbles
Post by: roy_043 on October 12, 2020, 03:03:30 PM
See here?:
https://www.theswamp.org/index.php?topic=56291.0
Title: Re: Automatic numbering for detail bubbles
Post by: jrr114 on October 12, 2020, 03:44:38 PM
I can get insertc to work properly but not blockc.  When I try blockc it gives me the block definition dialog box.  Any suggestions?  I am using AutoCAD if that helps.
Title: Re: Automatic numbering for detail bubbles
Post by: roy_043 on October 13, 2020, 02:30:14 AM
You have stopped reading at the first post in the topic I have linked to.
Try some of the other suggestions.

I have written the code you can find here:
https://www.theswamp.org/index.php?topic=56291.msg601839#msg601839
Title: Re: Automatic numbering for detail bubbles
Post by: Rustabout on October 17, 2020, 12:46:46 PM
I have a code but it's UGLY. Just a quick dirty routine to suite my needs. It might not be 'plug-and-play' and would likely require some editing on your part. What you're asking for is very easy if your grid bubbles always have either "1, 2, 3...." or "A, B, C....". That's actually LISP's strong suite. If the grid bubbles start having prefix's, suffix's, dashes (like "2-1") or letters combined with numbers (e: A3), things start getting tricky. The code gets more complicated. But at the same time, using the code gets more complicated as well. Like how does the code know to either return "A4" after "A3" or "B3"...