So after making the RHI out of zipped folder of the plugin I am testing I always get version 1.0.0.0 C:\Program Files\Common Files\McNeel\Rhinoceros\5.0\Plug-ins\MyPlugin\1.0.0.0
The version information needs to be compiled into the plug-in itself. The RHI system doesn’t have control over what version a plug-in is.
It doesn’t look like the compiler currently has support for setting a version. You would need to have the compiler generate the source files for you; add the version information and then compile with Visual Studio.
not sure if this helps, using the new compiler i put my plugin version information at the end of the start up message so i can at least check if updating the plugin worked or if the old version is still loading.
@stevebaer, i do miss the licensing and menu options which where available in the old compiler. Will something like this be considered in the future ?
Thanks Clement, that’s a great suggestion. What I was trying to figure out and test is how the *.rhi installer recognizes and always installs the latest plugin version, (per wiki instructions). Now can’t do it unless manually compiling as Steve suggested.
Since it is an anniversary of last activity on this bug report, I will try again and say that the current problem with compiled scripts not running inside transparent commands is quite a pain and makes a lot of compiled plugins over here much less useful… https://mcneel.myjetbrains.com/youtrack/issue/RH-31820
Hope for some love for this one in 2017 !
Can the compiler fuse this RUI-toolbar file I’ve create into the RHI-file automatically or will I have to rename it to zip, add the rui-file and the rename it back manually?
It’s been a while since we have discussed this topic but I have an issue and I think you might be able to help me out.
Currently, my plug-in compilation process is finalized using scripts, and now I would like to automatize all that by using Jenkins. So I basically transferred my batch scripts and everything seems to work fine except for the compilation of my RHP with the RhinoScriptCompiler.exe, let me explain why.
It seems that the executable assumes that it has a “physical” console window opened and it tries to rescale it or at least graphically interact with it, which leads to a crash in Jenkins which is working in batch.
c:\test_jenkins\jenkins_workspace\workspace\RhinoPlugin>RhinoScriptCompiler.exe .\test.rhc
Unhandled Exception: System.IO.IOException: The handle is invalid.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.Console.set_CursorVisible(Boolean value)
at RhinoScriptCompiler.Program.Main(String[] args)
When I try to do that manually on the physical machine (via RDP) in the console it works fine.
Do you think it could be possible to handle this case?
Is there a “full batch mode” for the RhinoScriptCompiler.exe?
Is the source code of the RhinoScriptCompiler.exe accessible?
In my code :
Call Main()
Sub Main()
Dim objXL
Set objXL = CreateObject(“Excel.Application”)
objXL.Visible = True
Call objXL.WorkBooks.Open(“D:\CUA”)
’ GAN GIA TRI TRONG EXCEL CHO BIEN
Dim i, A(12)
For i = 1 To 12 Step 1
A(i) = objXL.Worksheets(1).Cells(2 + i, 4).Value
Next
Rhino.print A(7)
End Sub
It is Ok
But after I use RhinoScript compiler and run it had error
Help me.
Maybe i misunderstand, but currently it is possible. RHI is just renamed ZIP, so if you open it using zip software, you can add any files you want. Or compile to rhp, and zip together with your files, then rename to rhi.
EDIT: unless you ask for ability to pick files from compiler project level for better automation. That indeed would be handy!
Hi @Jarek, that is the reason. Currently it makes a lot of work to update a plugin made of multiple scripts and other files without making errors. The most useful addition would be modules. I have a plugin with a dozen scripts which could all access a single module. To compile the scripts, i need to copy the module code into every script. If i update the module i need to repeat this again, so i have 2 versions of all scripts, the ones which are compilable (having the module code) and the ones which are not compileable and access the module in a regular way.
If i just could recompile the project and all files (scripts, chm, pdf…) referenced in my rhc project would be taken automatically, it would save a lot of time.