PDA

View Full Version : Auto Numbering Blocks


kwest
2008-12-01, 09:48 AM
I use the express tools auto number all the time, I just need one to number my blocks.
I have searched and have found some info on this topic but nothing that had works for me.

I have a block "LoadTag" which has an attribute "Load" in it. Right now I add my load tags and manual update each one ie.MF.27 Then when the designer comes back and add a extra load in a room I have to go and relabel them all again.
I would love to be able to have my tags number themselves, via X,Y or selection order. I have looked a few examples but they don't seem to work, and I haven't worked with Autolisps enough to no what is wrong.

Can someone please point to in the right direction. I'm using AC09
Thanks in Advance
Kurt

CAB2k
2008-12-03, 01:07 PM
Here is the pseudo code:

User selects the new block
User enter new number
Get all matching blocks in current space
Iterate through selection set
If LOAD is >= new number +1 number

irneb
2008-12-05, 09:23 AM
Could I just ask: Are all the blocks in the drawing numbered consecutively, or are there various sets of numbers? E.g. MF.1 --> MF.27, and SF.1 --> SF23, etc.

kwest
2008-12-07, 10:11 AM
There will be different groups.
LF - Lower Floor
MF- Main Floor
UF- Upper Floor
PF- Penthouse Floor
EXT- Exterior

After giving it more thought I would still have to manually select each block, so the label order would flow with the floor plans. In a perfect world it would work like the AutoNumber in Express Tools, just on my loadtag block.

Using some code that a member posted in a different topic I have the numbers incrementing on placement, which is nice but doesn't help me when I need to re-number because of additions or deletes.

Zuke
2009-02-25, 10:40 PM
I'm also in the need for this type of lisp.

Also one other thing can you make sure it works with dynamic blocks.