Visio Guy

Visio Discussions => Programming & Code => Topic started by: davidgon on June 14, 2017, 10:38:48 AM

Title: Error when export to .dwg
Post by: davidgon on June 14, 2017, 10:38:48 AM
Hello everyone!

I have document with macros, userforms... One of those macros exports the Visio document to autocad:

path = "C:\Example\Example.dwg"

Application.ActiveDocument.Pages("Page1").Export path


When I execute this code, this error appears: "Automation Error: The object invoked has disconnected from its clients".

The worst of all is that if I try to export the document using File->Export->Autocad(dwg), it fails too!!  :'(

Any idea?

Thanks!