AutoCAD LT
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Numbering sequential ly
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hello,
I've read a few posts which I thought would cover this but haven't been able to make anything work. Basically I have a piling layout with 350 piles on it which have to be numbered. I have done this by block and attribute and can edit the number to each one individually. However, If one pile gets added I have to renumber the subsequent ones to have a logical sequence for the builder. Not too much of a problem if is near the end of the numbers, but a real pain if it is near the top. The piles are not on a regular grid either so I can't just select and move the numbers en bloc. Is there any way to speed this up in Acad LT 2013? It would save me hours of editing time.
Thanks.
Solved! Go to Solution.
Re: Numbering sequential ly
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
That level of automation is not available in LT however you can Autonumber manually with these Macro's if you are so inclined. Though you may need to make adjustments to the first Macro if you have no need for a Text in the piles nomenclature.
-To provide a numbering scheme as in Rooms. Text height must be zero:
-Put this on one button:
^C^C_setenv;StartWithNumber;\_setenv;TextInFront;\
-Put this on a second button: (I added the Textstyle set portion S;Standard![]()
*^C^C_text;S;Standard;\;;$M=$(getenv,textinfront)" "$(getenv,startwithnumber);setenv;startwithnumber;
(The smiley wink should be a semi-colon and a parenthesis.)
Please mark any response as "Accept as Solution" if it answers your question.
__________________________________________________
CSHADEDESIGN|AUTOCAD LT|LT-KB|DYNAMIC BLOCKS
Please mark Accept as Solution if your question is answered. Kudos gladly accepted. ⇘
Re: Numbering sequential ly
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hello Charles,
Thanks very much for this. I have done the two button arrangement using cut and paste but I must be quite thick as I can't get it to work. What I would like to do is select the blocks and have numbers put in each one preferably without having to edit each one. If this is what the macro does how do I make it work? I'm not used to working with macros so need basic instructions.
Thanks anyway.
Re: Numbering sequential ly
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Pick the first Macro and type the number to start with (Value) hit enter and type some Text (Value) hit enter to close the first Macro.
Pick the scond Macro and just start clicking. This should give you the Text followed by the Number.
Like I said you may not need the text but we need to get you to understand how the Macros work.
Please mark any response as "Accept as Solution" if it answers your question.
__________________________________________________
CSHADEDESIGN|AUTOCAD LT|LT-KB|DYNAMIC BLOCKS
Please mark Accept as Solution if your question is answered. Kudos gladly accepted. ⇘
Re: Numbering sequential ly
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Re: Numbering sequential ly
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Do you also use excel in your work. If so you can better spend that couple of hours going out for lunch (3 course), come back to work and still have time for an afternoon nap.
To show how it could be done create a block called "TEST" with one attribute with the tag AUTONUM. Insert the block 4 times and give them the values 1,2,3 & 4 now insert a 5th block and give it a value of 2.1
Copy the following text into notepad and save it as "Update.scr" (just copy the text between the dotted lines)
-----------
-attedit
n
n
TEST
AUTONUM
4
4
5
-attedit
n
n
TEST
AUTONUM
3
3
4
-attedit
n
n
TEST
AUTONUM
2.1
2.1
3
--------------
Now just drag and drop the Update.scr file onto your autocad drawing, and the blocks will be renumbered from 1 thru 5.
PS the sequence has to run high to low or you will end up with 1,2,5,5,5
Anyway back to how it should work Isert any new piles that you need and number them so that the new piles fall in where you want them using decimals. Extract the number values from your drawing and reverse sort them. Use the format above and make a scr file, even doing it by hand in notepad copy and pasting shouldn't take more than 10 min for 350 piles (with excel and a bit of programming less than a minute). And if you need to remove piles then same thing but numbers run low to high. You will no doubt need to do a bit of work to get it to work with your attributes, but it is doable. If you want then post a sample of your blocks and I can probably give you a better idea.
Setting Out (Joinery Manufacturing)
Autocad 2013LT
Windows 7 professional
Re: Numbering sequential ly
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks for this. I will have to work it through when I have some time as it sounds as if it could be useful to me. As usual a deadline looms so I have managed to get the macro to work. Many thanks.
Re: Numbering sequential ly
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Many thanks Charles. I have managed to get the Macro to do what I want and learned quite a bit about Macros too! It will save me lots of time.
Much appreciated.

