Author Topic: Automation error is prompted when using VLA-activate.Document switching is disab  (Read 1208 times)

0 Members and 1 Guest are viewing this topic.

iwill

  • Mosquito
  • Posts: 2
Automation error is prompted when using VLA-activate.Document switching is disabled.Is there a system variable setting problem

Code: [Select]

(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)


Crank

  • Water Moccasin
  • Posts: 1503
Look over here.
Vault Professional 2023     +     AEC Collection

jbuzbee

  • Swamp Rat
  • Posts: 851
Code: [Select]
(vl-load-com)
(setq app  (vlax-get-acad-object)
      docs (vla-get-documents app)
      doc  (vla-item docs "X_Base.dwg")
      )
(vla-activate doc)

Works for me
James Buzbee
Windows 8