I opened a blank drawing, saved it to a name and reopened. Then in a lisp I am running this code: (setq layerstateobject (vla-GetInterfaceObject (vlax-get-acad-object) "AutoCAD.AcadLayerStateManager")) (vla-setdatabase layerstateobject (vla-get-database (vla-get-activedocument (vlax-get-acad-object)))) It errors out on me on the second line. I inspected all the variables with vlisp and they all return valid objects. I tried catch-all-apply for the get database method and all tricks I know for objects with no luck. This worked fine in A2002, not sure if something changed I should be aware of. thx James Maeding Civil Engineer/Programmer