PDA

View Full Version : auto number title blocks


lee.johnson
2009-04-17, 09:38 PM
I'm looking for a way to automate the numbering of our titleblock sheet numbers.The sheet number is an attribute of the titleblock.
If I have one sheet no FP1.01.1 if I copy that sheet it can get the value of the previous sheet no. and increase it by one (FP1.01.2) and so on. would something like that be better supported with VBA or Autolisp?

rkmcswain
2009-04-19, 03:06 PM
I take it you are not using SSM? This would be the easiest way.
If that is not an option, then you can at least use a field that references the layout name, then as you change the layout name the field(s) will update.

irneb
2009-04-20, 02:46 PM
Are you referring to a command which copies the Layout as a new one, then renames it to the incremented drawing number? I'd suggest obtaining a vlax link to the Layouts collection as well as the source layout. Get the source's name, then using (substr (atoi (+ (itoa and (strcat get the next number. Then using vla-Add on the Layouts collection add the new number as a layout into the Layouts collection - get a reference from this to the new layout. Then use vla-CopyFrom to duplicate the source onto the new.

And then, definately as rkmcswain's stated, use fields to read the layout tab name in the TB itself.

lee.johnson
2009-04-20, 03:49 PM
I see SSM alot but I'm not sure what it means. But I will try what yuo suggested

lee.johnson
2009-04-20, 03:56 PM
Are you referring to a command which copies the Layout as a new one, then renames it to the incremented drawing number? I'd suggest obtaining a vlax link to the Layouts collection as well as the source layout. Get the source's name, then using (substr (atoi (+ (itoa and (strcat get the next number. Then using vla-Add on the Layouts collection add the new number as a layout into the Layouts collection - get a reference from this to the new layout. Then use vla-CopyFrom to duplicate the source onto the new.

And then, definately as rkmcswain's stated, use fields to read the layout tab name in the TB itself.
Yes, That's what I was I was planning on doing.

irneb
2009-04-20, 04:50 PM
SSM stands for Sheet Set Manager. It can definitely save you a lot of time when working with numerous drawings per project.