DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

load dataplugin via script

Solved!
Go to solution

Hi there,

 

how can i load a dataplugin (*.uri) via script? Can I check the current plug-ins, if the plug-in is already loaded?

 

Greetings,

Martin

0 Kudos
Message 1 of 3
(4,624 Views)
Solution
Accepted by topic author MartinKozlowski

Hi Martin

 

The following will let you know what the current revision of a data pluggin is.

 

The second function will update the data plugin if it requires it.

 

Enjoy!

 

Paul

 

'  Gets the version of a dataplugin

function GetDatapluginVersion(strDatapluginName)

  Dim oMyDataPlugin

  Set oMyDataPlugin = Navigator.Settings.RegisteredDataPlugins(strDatapluginName)

  GetDatapluginVersion = oMyDataPlugin.Version

  'Call MsgBoxDisp(oMyDataPlugin.Version)

end function

 

 

sub CheckUpdateAOP5

dim strAOP5CurrentVersion,strAOP5LatestVersion

dim MyVar

dim path2AOP5: Path2AOP5 = "Yours to fill in"

strAOP5CurrentVersion =GetDatapluginVersion("AOP5")

strAOP5LatestVersion = "11.0.1f5081"

if strAOP5CurrentVersion = strAOP5LatestVersion then

'msgbox("AOP5 Latest version:"&strAOP5LatestVersion & " equals " &strAOP5CurrentVersion )

else

MyVar = MsgBox("AOP5 Dataplugin requires updating Update Now?", vbYesNo + vbQuestion, "DIAdem")

Select Case MyVar

Case vbYes

Call ExtProgram( Path2AOP5 )

 

End Select

end if

end sub

 

 

 

0 Kudos
Message 2 of 3
(4,617 Views)

Hi,

 

thank you very much 🙂

0 Kudos
Message 3 of 3
(4,609 Views)