Description:

Easy to use number getter.

Syntax:
public static Result GetInteger(
string prompt,
bool acceptNothing,
ref int outputNumber,
int lowerLimit,
int upperLimit
)
Parameters:
  • prompt
  • Type: string
  • The command prompt.
  • acceptNothing
  • Type: bool
  • If true, the user can press enter.
  • outputNumber
  • Type: int
  • default number is set to this value and number value returned here.
  • lowerLimit
  • Type: int
  • The minimum allowed value.
  • upperLimit
  • Type: int
  • The maximum allowed value.
Returns:
Type: Result
Commands.Result.Success - got number Commands.Result.Nothing - user pressed enter Commands.Result.Cancel - user cancel number getting.
Available since:
5.0

Description:

Easy to use number getter.

Syntax:
public static Result GetInteger(
string prompt,
bool acceptNothing,
ref int outputNumber
)
Parameters:
  • prompt
  • Type: string
  • command prompt.
  • acceptNothing
  • Type: bool
  • if true, the user can press enter.
  • outputNumber
  • Type: int
  • default number is set to this value and number value returned here.
Returns:
Type: Result
Commands.Result.Success - got number Commands.Result.Nothing - user pressed enter Commands.Result.Cancel - user cancel number getting.
Available since:
5.0

GetInteger method

Class:  Rhino.Input.RhinoGet

Nothing found