T_Rhino_Commands_SelCommand - mcneel/rhinocommon-api-docs GitHub Wiki
For adding nestable selection commands that work like the native Rhino SelCrv command, derive your command from SelCommand and override the virtual SelFilter function.
System.Object
Rhino.Commands.Command
Rhino.Commands.SelCommand
Namespace: Rhino.Commands
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public abstract class SelCommand : Command
VB
Public MustInherit Class SelCommand
Inherits Command
The SelCommand type exposes the following members.
Name | Description | |
---|---|---|
![]() |
SelCommand | Initializes a new instance of the SelCommand class |
Name | Description | |
---|---|---|
![]() |
BeQuiet | |
![]() |
CommandContextHelpUrl |
Gets the URL of the command contextual help. This is usually a location of a local CHM file.
The default implementation return an empty string.
(Inherited from Command.) |
![]() |
EnglishName | Gets the name of the command. This method is abstract. (Inherited from Command.) |
![]() |
Id | Gets the unique ID of this command. It is best to use a Guid attribute for each custom derived command class since this will keep the id consistent between sessions of Rhino GuidAttribute (Inherited from Command.) |
![]() |
LocalName | Gets the local name of the command. (Inherited from Command.) |
![]() |
PlugIn | Gets the plug-in where this commands is placed. (Inherited from Command.) |
![]() |
Settings | Gets the settings of the command. (Inherited from Command.) |
![]() |
TestGrips | |
![]() |
TestLights |
Name | Description | |
---|---|---|
![]() |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
OnHelp | Is called when the user needs assistance with this command. (Inherited from Command.) |
![]() |
ReplayHistory |
Repeats an operation of a command.
In order to make this function work, you will likely need to grab the Result property that gives the list of input objects. Then, you will be able to replace these inputs by using one of the UpdateToX() methods of the ReplayHistoryResult.
You should NOT use any document AddX() or ReplaceX() functions, as they will break history. (Inherited from Command.) |
![]() |
RunCommand | (Overrides Command.RunCommand(RhinoDoc, RunMode).) |
![]() |
SelFilter | Override this virtual function and return true if object should be selected. |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Supported in: 5D58w