GumballSettings

Since v9.0
public static class GumballSettings
Contains static metthods and properties to modify Rhino gumball settings.

Properties

ArcThickness

#Since v9.0
Specifies the thickness of the rotation arcs in pixels. Set arc thickness to zero to turn off rotation handles.
public static int ArcThickness { get; set; }

AutoGumballAlignment

#Since v9.0
Specifies the plane the gumball aligns itself to.
public static GumballAlignment AutoGumballAlignment { get; set; }
Remarks: Setting this does not re-align a gumball that is already on screen; the new alignment is picked up the next time the gumball is built, for example when the selection changes. Run the GumballAlignment command instead if you need the visible gumball updated.

This setting is deliberately not part of GumballSettingsState, so it is left alone by RestoreDefaults(). This matches the RestoreDefaults behavior of the -GumballSettings command, which does not reset the alignment either.

AxisThickness

#Since v9.0
Specifies the thickness of the axis arrows in pixels. Set axis thickness to zero to turn of move handles.
public static int AxisThickness { get; set; }

EnableGumball

#Since v9.0
Turns the gumball widget on any time objects are selected.
public static bool EnableGumball { get; set; }

ExtrudeBallSize

#Since v9.0
Specifies the size of the extrude dots in pixels.
public static int ExtrudeBallSize { get; set; }

GumballRadius

#Since v9.0
Specifies the radius of the gumball widget in pixels.
public static int GumballRadius { get; set; }

MergeFacesAfterExtrude

#Since v9.0
Merges faces after extruding.
public static bool MergeFacesAfterExtrude { get; set; }

PlaneLocation

#Since v9.0
Specifies the distance of the plane indicators from the gumball origin in pixels.
public static int PlaneLocation { get; set; }

PlaneSize

#
Specifies the size of the plane indicators in pixels. Set plane size to zero to turn off the plane indicators. 9.0
public static int PlaneSize { get; set; }

PlaneVisibilityAngle

#Since v9.0
Sets the angle of view for the plane to be visible. The range is from 0 to 90 degrees. 0 degrees means the plane only shows if the gumball is perfectly aligned to the view, 90 means the plane always shows. The default is 50 degrees.
public static double PlaneVisibilityAngle { get; set; }

RotateViewAroundGumball

#Since v9.0
Sets the view rotation center to the gumball origin.
public static bool RotateViewAroundGumball { get; set; }

ScaleHandleSize

#Since v9.0
Specifies the size of the scale handles in pixels. Set scale handle size to zero to turn off scale handles.
public static int ScaleHandleSize { get; set; }

SnappyGumball

#Since v9.0
If true, snaps to object snap locations. if false, ignores object snap locations.
public static bool SnappyGumball { get; set; }

TipLength

#Since v9.0
Specifies the length of the direction arrows in pixels.
public static int TipLength { get; set; }

TipWidth

#Since v9.0
Specifies the width of the direction arrows in pixels.
public static int TipWidth { get; set; }

XAxisColor

#Since v9.0
Specifies the gumball x axis color.
public static Color XAxisColor { get; set; }

YAxisColor

#Since v9.0
Specifies the gumball y axis color.
public static Color YAxisColor { get; set; }

ZAxisColor

#Since v9.0
Specifies the gumball z axis color.
public static Color ZAxisColor { get; set; }

Methods

GetCurrentState

#Since v9.0
Gets the current settings of the application.
public static GumballSettingsState GetCurrentState()

GetDefaultAlignment

#Since v9.0
Gets the factory default value of AutoGumballAlignment.
public static GumballAlignment GetDefaultAlignment()

GetDefaultState

#Since v9.0
Gets the factory settings of the application.
public static GumballSettingsState GetDefaultState()

RestoreDefaults

#Since v9.0
Commits the default settings as the current settings.
public static void RestoreDefaults()

UpdateFromState

#Since v9.0
Sets all settings to a particular defined joined state.
public static void UpdateFromState(
state
The particular state.
)