Hi,
I am trying to Plot multiple layouts but when I loop through BlockTableRecord object the second time to print the next layout I get the "Operation is not valid due to the current state of the object." error.
I have attached the file, this came from Kean Walmsley "Through the Interface" http://through-the-interface.typepad.com/through_the_interface/2007/09/driving-a-multi.html
I believe this came out in Sep 2007, so I suspect the way we are supposed to access the block table records has changed in that time??
Can someone please look over the code? If you'll notice there are two sections that interate/loop over the block table records, one to gather all of the viewports and the second to plot them out one at a time.
The problem is with the second loop through the block table records. It will go through the loop once and on the second go I get the error.
I have comment the code in the attachment to say where the error is happening.
Any help would be great!