Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Colin Richardson on May 09, 2011, 01:43:13 pm

Title: Does the Vision MDG work with Visio 2007?
Post by: Colin Richardson on May 09, 2011, 01:43:13 pm
I'm getting a

"Could not communicate with Visio.
Please ensure that Visio 2002 or greater is installed"

I actually suspect it's due to our dodgy enterprise deployment of Visio not installing some Visio COM objects...but I thought it worth asking the question...
Title: Re: Does the Vision MDG work with Visio 2007?
Post by: Aaron B on May 09, 2011, 03:46:04 pm
Hi Colin,

If the COM objects aren't accessible, the Visio Importer add-in will not work.  Try using the following VBScript code to test for one of the required objects on your system.  Save as a .VBS file on your system and run.

Code: [Select]
On Error Resume Next
Set ob = CreateObject("Visio.InvisibleApp")
If ob Is Nothing Then
      MsgBox "Failed", vbCritical, "Visio COM Test"
Else
      MsgBox "Success", vbInformation, "Visio COM Test"
End If
Title: Re: Does the Vision MDG work with Visio 2007?
Post by: Colin Richardson on May 09, 2011, 03:48:45 pm
Yep, failed.  Time to talk to our enterprise librarians to see if I can get a "real" copy of Visio

Many thanks