This code works great in Map2000i but not in 2004. The GetInterfaceObject("AutoCAD.AcadLayerStateManager") I'm sure is the problem. I've tried ("AutocadMAP.Application.2") & ("AutocadMAP.AcadLayerStateManager.2") but they are incorrect. Sub test() Dim layerState As AcadLayerStateManager Set layerState = AcadApplication.GetInterfaceObject("AutoCAD.AcadLayerStateManager") Call layerState.SetDatabase(ThisDrawing.Database) layerState.Save "Temp", acLsAll End Sub Thanks