
Originally Posted by
irneb
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.