Click or drag to resize

GetObjectEnablePreSelect Method

Control the pre selection behavior GetObjects.

Namespace:  Rhino.Input.Custom
Assembly:  RhinoCommon (in RhinoCommon.dll)
public void EnablePreSelect(
	bool enable,
	bool ignoreUnacceptablePreselectedObjects


Type: SystemBoolean
if true, pre-selection is enabled.
Type: SystemBoolean
If true and some acceptable objects are pre-selected, then any unacceptable pre-selected objects are ignored. If false and any unacceptable are pre-selected, then the user is forced to post-select.
By default, if valid input is pre-selected when GetObjects() is called, then that input is returned and the user is not given the opportunity to post-select. If you want to force the user to post-select, then call EnablePreSelect(false).
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.2
See Also