BML
Industrial
- Jun 22, 1999
- 104
I'm trying to write some code that will make certain modifications to a set of drawings. One of the first tasks is to get the list of all layers on the active drawing, then cycle through each using a for-next loop to modify those layers (turn off, rename, etc.). This works okay for the first drawing I process. I then continue on with some other changes, save and close the active drawing. Then when I switch to the next drawing and make it active, I try to read in the new layer names and run the for-next loop again. On the second pass through I get a fatal error unhandled access violation exception. I thought it might have been caused by using the same variable to represent the current and set of all layers, but indexing the variables did not help. Any thoughts?
Thanks!
Thanks!