Automation error is prompted when using VLA-activate.Document switching is disabled.Is there a system variable setting problem
(vl-load-com)
(setq app (vlax-get-acad-object))
(setq docs (vla-get-documents app))
(setq doc (vla-item docs "yf.dwg"))
(vla-activate doc)