Logo Rhino.Scripting.Fsharp

AutoOpenPrinting Module

This module provides the 'pretty' function and colored printing to the Rhino command line. This module is automatically opened when Rhino.Scripting.FSharp namespace is opened.

Functions and values

Function or value Description

pretty x

Full Usage: pretty x

Parameters:
    x : 'T

Returns: string
Type parameters: 'T

Formats any value to a string using F#'s "%A" formatting (for now).

x : 'T
Returns: string

Type extensions

Type extension Description

RhinoScriptSyntax.PrintBlue(msg)

Full Usage: RhinoScriptSyntax.PrintBlue(msg)

Parameters:
    msg : string - (string) The string to print

Prints in Blue if used from Fesh F# Scripting Editor. Does not add a new line at end. Prints to Console.Out and to Rhino Commandline.

Extended Type: RhinoScriptSyntax

msg : string

(string) The string to print

RhinoScriptSyntax.PrintColor(red) (green) (blue) (msg)

Full Usage: RhinoScriptSyntax.PrintColor(red) (green) (blue) (msg)

Parameters:
    red : int - (int) Red Value between 0 and 255
    green : int - (int) Green value between 0 and 255
    blue : int - (int) Blue value between 0 and 255
    msg : string - The string

Prints in custom color if used from Fesh F# Scripting Editor. Does not add a new line at end. Prints to Console.Out and to Rhino Commandline.

Extended Type: RhinoScriptSyntax

red : int

(int) Red Value between 0 and 255

green : int

(int) Green value between 0 and 255

blue : int

(int) Blue value between 0 and 255

msg : string

The string

RhinoScriptSyntax.PrintGray(msg)

Full Usage: RhinoScriptSyntax.PrintGray(msg)

Parameters:
    msg : string - (string) The string to print

Prints in Gray if used from Fesh F# Scripting Editor. Does not add a new line at end. Prints to Console.Out and to Rhino Commandline.

Extended Type: RhinoScriptSyntax

msg : string

(string) The string to print

RhinoScriptSyntax.PrintGreen(msg)

Full Usage: RhinoScriptSyntax.PrintGreen(msg)

Parameters:
    msg : string - (string) The string to print

Prints in Green if used from Fesh F# Scripting Editor. Does not add a new line at end. Prints to Console.Out and to Rhino Commandline.

Extended Type: RhinoScriptSyntax

msg : string

(string) The string to print

RhinoScriptSyntax.PrintLightBlue(msg)

Full Usage: RhinoScriptSyntax.PrintLightBlue(msg)

Parameters:
    msg : string - (string) The string to print

Prints in Light Blue if used from Fesh F# Scripting Editor. Does not add a new line at end. Prints to Console.Out and to Rhino Commandline.

Extended Type: RhinoScriptSyntax

msg : string

(string) The string to print

RhinoScriptSyntax.PrintRed(msg)

Full Usage: RhinoScriptSyntax.PrintRed(msg)

Parameters:
    msg : string - (string) The string to print

Prints in Red if used from Fesh F# Scripting Editor. Does not add a new line at end. Prints to Console.Out and to Rhino Commandline.

Extended Type: RhinoScriptSyntax

msg : string

(string) The string to print

RhinoScriptSyntax.PrintnBlue(msg)

Full Usage: RhinoScriptSyntax.PrintnBlue(msg)

Parameters:
    msg : string - (string) The string to print

Prints in Blue if used from Fesh F# Scripting Editor. Adds a new line at end. Prints to Console.Out and to Rhino Commandline.

Extended Type: RhinoScriptSyntax

msg : string

(string) The string to print

RhinoScriptSyntax.PrintnColor(red) (green) (blue) (msg)

Full Usage: RhinoScriptSyntax.PrintnColor(red) (green) (blue) (msg)

Parameters:
    red : int - (int) Red Value between 0 and 255
    green : int - (int) Green value between 0 and 255
    blue : int - (int) Blue value between 0 and 255
    msg : string - The format string

Prints in custom color if used from Fesh F# Scripting Editor. Adds a new line at end. Prints to Console.Out and to Rhino Commandline.

Extended Type: RhinoScriptSyntax

red : int

(int) Red Value between 0 and 255

green : int

(int) Green value between 0 and 255

blue : int

(int) Blue value between 0 and 255

msg : string

The format string

RhinoScriptSyntax.PrintnGray(msg)

Full Usage: RhinoScriptSyntax.PrintnGray(msg)

Parameters:
    msg : string - (string) The string to print

Prints in Gray if used from Fesh F# Scripting Editor. Adds a new line at end. Prints to Console.Out and to Rhino Commandline.

Extended Type: RhinoScriptSyntax

msg : string

(string) The string to print

RhinoScriptSyntax.PrintnGreen(msg)

Full Usage: RhinoScriptSyntax.PrintnGreen(msg)

Parameters:
    msg : string - (string) The string to print

Prints in Green if used from Fesh F# Scripting Editor. Adds a new line at end. Prints to Console.Out and to Rhino Commandline.

Extended Type: RhinoScriptSyntax

msg : string

(string) The string to print

RhinoScriptSyntax.PrintnLightBlue(msg)

Full Usage: RhinoScriptSyntax.PrintnLightBlue(msg)

Parameters:
    msg : string - (string) The string to print

Prints in Light Blue if used from Fesh F# Scripting Editor. Adds a new line at end. Prints to Console.Out and to Rhino Commandline.

Extended Type: RhinoScriptSyntax

msg : string

(string) The string to print

RhinoScriptSyntax.PrintnRed(msg)

Full Usage: RhinoScriptSyntax.PrintnRed(msg)

Parameters:
    msg : string - (string) The string to print

Prints in Red if used from Fesh F# Scripting Editor. Adds a new line at end. Prints to Console.Out and to Rhino Commandline.

Extended Type: RhinoScriptSyntax

msg : string

(string) The string to print

Type something to start searching.