Header menu logo Rhino.Scripting

RhinoSync Type

All methods in Rhino.Scripting.dll are thread safe and can be called from any thread. However concurrent writing to Rhino Object Tables might corrupt its state. This class provides a way to run all UI methods on the UI thread. It tries to use the Fesh Editor UI thread if it is running. If you are not running from the Fesh Editor, it will use RhinoApp.MainWindow.Invoke.

Static members

Static member Description

RhinoSync.DoSync(func)

Full Usage: RhinoSync.DoSync(func)

Parameters:
    func : unit -> 'T

Returns: 'T

Evaluates a function on UI Thread.

func : unit -> 'T
Returns: 'T

RhinoSync.DoSyncRedraw(func)

Full Usage: RhinoSync.DoSyncRedraw(func)

Parameters:
    func : unit -> 'T

Returns: 'T

Evaluates a function on UI Thread. Also ensures that redraw is enabled and disabled afterwards again if it was disabled initially.

func : unit -> 'T
Returns: 'T

RhinoSync.DoSyncRedrawHideEditor(func)

Full Usage: RhinoSync.DoSyncRedrawHideEditor(func)

Parameters:
    func : unit -> 'T

Returns: 'T

Evaluates a function on UI Thread. Also ensures that redraw is enabled and disabled afterwards again if it was disabled initially. Hides Fesh editor window if it exists. Shows it afterwards again

func : unit -> 'T
Returns: 'T

RhinoSync.FeshRhinoAssembly

Full Usage: RhinoSync.FeshRhinoAssembly

Returns: Assembly

The Assembly currently running Fesh Editor Window. Or 'null' if not running in Fesh Editor.

Returns: Assembly

RhinoSync.HideEditor()

Full Usage: RhinoSync.HideEditor()

Hide the WPF Window of currently running Fesh Editor. Or do nothing if not running in Fesh Editor.

RhinoSync.LogErrors

Full Usage: RhinoSync.LogErrors

Set to false to disable the logging off errors to RhinoApp.WriteLine and the error stream (eprintfn).

RhinoSync.ShowEditor()

Full Usage: RhinoSync.ShowEditor()

Show the WPF Window of currently running Fesh Editor. Or do nothing if not running in Fesh Editor.

RhinoSync.SyncContext

Full Usage: RhinoSync.SyncContext

The SynchronizationContext of the currently Running Rhino Instance, This SynchronizationContext is loaded via reflection from the Fesh.Rhino plugin

Type something to start searching.