RhinoScript "PlugInInfo" get no value

I want to know the version of the plug-in, but the bet for Rhino.PlugInInfo
Element 3 missing

@UtsMicke, it might depend on the plugin you test if the version is available at all.

Try this: open the PluginManager, highlight the plugin then click on the Properties button. If it lists “Unavailable” under Version, there is nothing to read. I´ve found only a hand full of plugins having the version value set.


try the command on a file with the version info and see if it works


Thanks, i can repeat this in Rhino 5 and Rhino 6 wip:

Option Explicit

Call Main()
    Sub Main()
    Dim strPlugin, arrPlugins, arrInfo, i
    strPlugin = "Alerter"
    arrInfo = Rhino.PlugInInfo(strPlugin)
    If IsArray(arrInfo) Then

        For i = 0 to UBound(arrInfo)
            Rhino.Print i & " " & arrInfo(i)

    End If
End Sub

The version Info is not printed when available.
bug report: http://mcneel.myjetbrains.com/youtrack/issue/RH-33211


Plug-ins can return, to Rhino’s plug-in manager, their version number. This number is not necessarily the same as the file’s version number.

The plug-in version field, returned by PlugInInfo, is probably always empty as this value is only filled in during an RHI installation.

Since returning a null value is somewhat useless, I’ve modified the PlugInInfo method for V6 to return the file version (read from the file’s version info meta-data), in case Rhino’s plug-in manager doesn’t return anything useful for the plug-in version.