Sharepoint as a Custom Package Repository

@will, that’s understandable. Thanks for the feedback!

After doing some research, we’ve implemented this solution building on what @Jarek worked through to set Advanced settings via Python as outlined HERE and HERE.

Here’s our little script (genericized) that we use to point people to the right file path after they synchronized the appropriate SharePoint library:

import Rhino
import os

user = os.environ['USERPROFILE'] #sets user = C:\Users\<username>
filepath = user + "<mapped sharepoint folder path>"

settings = Rhino.PlugIns.PlugIn.GetPluginSettings(Rhino.RhinoApp.CurrentRhinoId, False)
s = settings.GetChild("Options").GetChild("PackageManager")
s.SetString("Sources","https://yak.rhino3d.com;" + filepath)

Hopefully, others will find this useful too!

4 Likes