Update worksessions automatically

Hi there,

I would like to have an option to update all worksession models automatically.
When I tried to find an update option I did not find any.
What I am ablet to do is to find all paths.

ws = sc.doc.Worksession

for x in ws.ModelPaths:
    print(x)

Is there no option to do so yet?
It works fine with

Rhino.RhinoApp.RunScript("_-Worksession R", false)

It would just be nicer to have more control via RhinoCommon.

Thanks,
T.

Hey @tobias.stoltmann,

Why/when do you want to reload the worksession models?

hi @csykes,

well colleauges change models or you want to keep references in separate models.
That’s when I want to be able to update them.

I have noticed that sometimes if the model is on a server and is huger it takes some time to load the workession menu or make a right-click on the worksession in the layer panel.

So it is just more convenient to have a button/command that updates all of them.
The commandline version works fine, I just wanted to understand if it is achievable via rhino common.

I can’t find anything via RhinoCommon unfortunately!
It would be handy though. You could tie a FileWatcher to the files and have it automatically update though (Using the RhinoApp.RunScript still) :slight_smile: if that might help?

1 Like

Thanks for the input.
I’ll have a look into this.

So far the commandline works fine.

1 Like