How Can I lock my rvb script file, I want to open the script without seeing the content.
Option Explicit
Call Main()
Sub Main()
Rhino.Print("Test")
End Sub
How Can I lock my rvb script file, I want to open the script without seeing the content.
Option Explicit
Call Main()
Sub Main()
Rhino.Print("Test")
End Sub
If you would like to run a .rvb script without opening the script editor, there are several ways to do this.
Here are some options. All options assume you have saved your script to a local .rvb file.
Option 1:
Option 2:
Option 3:
Call Main()
line from the scriptpublic Sub Main()
_-runscript Main
.Locking If you mean 'locking' in a more traditional sense of locking a file. I am not familiar with any Rhino options, but in Windows you can right-click the file, open 'Properties', and in the 'General' tab there is a 'Attributes: Read-Only' option, which would lock the file and prevent modification but will not prevent the scrip from being able to run in rhino.