Author Topic: Automation error is prompted when using VLA-activate.Document switching is disab  (Read 189 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

  • Swamp Rat
  • Posts: 1466
Look over here.
Vault Professional 2018     +     AEC Collection

jbuzbee

  • Swamp Rat
  • Posts: 848
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