I am trying to setup an automated batch plot. And I was thinking of using an array to cycle through the layouts. But when I try to add a layout to an array, I get an error, "Object variable or With block variable not set". What could I be doing wrong? Dim Layout as ACADLayout Dim Layoutlist(0 to 3) as ACADLayout Dim count as Integer count = 0 For Each Layout In ThisDrawing.Layouts Layoutlist(count) = Layout count = count + 1 Next