Author Topic: Automatic numbering for detail bubbles  (Read 304 times)

0 Members and 1 Guest are viewing this topic.

jrr114

  • Mosquito
  • Posts: 10
Automatic numbering for detail bubbles
« 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?

roy_043

  • Water Moccasin
  • Posts: 1825
  • BricsCAD 18
Re: Automatic numbering for detail bubbles
« Reply #1 on: October 12, 2020, 03:03:30 PM »

jrr114

  • Mosquito
  • Posts: 10
Re: Automatic numbering for detail bubbles
« Reply #2 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.

roy_043

  • Water Moccasin
  • Posts: 1825
  • BricsCAD 18
Re: Automatic numbering for detail bubbles
« Reply #3 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

Rustabout

  • Newt
  • Posts: 54
Re: Automatic numbering for detail bubbles
« Reply #4 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"...