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.ClearLog()

Full Usage: RhinoSync.ClearLog()

Clears the Fesh log window and the Rhino command history window.

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.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.PrettyFormatters

Full Usage: RhinoSync.PrettyFormatters

Returns: ResizeArray<(obj -> string option)>
Returns: ResizeArray<(obj -> string option)>

RhinoSync.PrintColor(r) (g) (b) (s)

Full Usage: RhinoSync.PrintColor(r) (g) (b) (s)

Parameters:
    r : int
    g : int
    b : int
    s : string

Prints in both RhinoApp.WriteLine and Console.WriteLine, or Fesh Editor with color if running. Red green blue text , NO new line

r : int
g : int
b : int
s : string

RhinoSync.PrintnColor(r) (g) (b) (s)

Full Usage: RhinoSync.PrintnColor(r) (g) (b) (s)

Parameters:
    r : int
    g : int
    b : int
    s : string

Prints in both RhinoApp.WriteLine and Console.WriteLine, or Fesh Editor with color if running. Red green blue text , with new line

r : int
g : int
b : int
s : string

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.