RhinoCommon API
HostUtilsRegisterDynamicCommand Method |
Adds a new dynamic command to Rhino.
Namespace: Rhino.Runtime
Assembly: RhinoCommon (in RhinoCommon.dll)
Since: 5.0
public static bool RegisterDynamicCommand( PlugIn plugin, Command cmd )
Public Shared Function RegisterDynamicCommand ( plugin As PlugIn, cmd As Command ) As Boolean
Parameters
- plugin
- Type: Rhino.PlugInsPlugIn
Plugin that owns the command. - cmd
- Type: Rhino.CommandsCommand
Command to add.
Return Value
Type: Booleantrue on success, false on failure.