- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I’m in need of some help writing what I think is a fairly simple script. I could be wrong of course, not had a lot of experience writing scripts!
I basically need a script that will number my blocks sequentially.
To elaborate a little…. I’m doing some development work for our Audio Visual guys, making blocks for different equipment types – speakers, display screens etc. I’ve given the blocks various attributes including building level, room name and so on, the usual things you would want for equipment scheduling. Along with this we also need to number these bits of equipment so I’ve added an attribute for this into each block too.
I was hoping that rather than have to manually go round numbering all these blocks all the time (which due to human nature will no doubt end up with duplicates as well!) I could write a script that would do it for me, with a variable where I can change the block name so I can run it for each equipment type.
So to summarise I need a script that does something like this:
Find - all blocks named <block name> (this is the bit I need to be able to change for the other blocks)
In attribute <EQ.NO.> (this is the same on all blocks)
Fill in with 001
Then go up sequentially through other blocks
It doesn’t have to follow any sort of order in terms of placement, I don’t care if 001 is the other side of the building to 002, I just want to eliminate the manual element of doing it.
All help is much appreciated, thanks!
Tom
"music is my religion" - Jimi Hendrix
Solved! Go to Solution.