Can someone please tell me what I am doing wrong with this statement. If the value is true then it works, but if it is false I get the error: "Automation Error. Key not found" and it bombs out instead of returning "False." (if (vla-item (vla-get-layers (vla-get-activedocument (vlax-get-acad-object) ) ) "foo") (princ "True") (princ "False") ) Thanks a bunch! kemp