I would like to put some additional Rhinoscript code in a toolbar button that will load the RVB file if it is not already loaded. In that way there is no memory consumed by the code unless it is needed. What I show below does not work because LoadScript is not seeing the file path (there’s just a space between LoadScript and C:.Rhino_Toolbars…). Any ideas?
! -_RunScript (
if not Rhino.isCommand(“SelectLengthUnit”) then Rhino.Command “_LoadScript C:\Rhino_Toolbars\Weight Estimate.rvb”)