Click or drag to resize

Command Class

It represents the command.
Inheritance Hierarchy
SystemObject
  RootPro.RootProCAD.CommandCommand

Namespace:  RootPro.RootProCAD.Command
Assembly:  RootPro.RootProCAD.Library (in RootPro.RootProCAD.Library.dll) Version: 12.0.0.0 (12.0.0.0)
Syntax
public abstract class Command

The Command type exposes the following members.

Constructors
  NameDescription
Protected methodCommand
Initializes a new instance of the Command class
Top
Properties
  NameDescription
Public propertyBuiltIn
RootPro Gets a value indicating whether it is a standard command of CAD.
Public propertyCurrentParameterGroup
Get or set the current parameter group.
Public propertyCurrentParameterGroupIndex
Get or set the index of the current parameter.
Public propertyCurrentParameterItem
Get the current parameter item.
Public propertyName
Get or set the command name.
Public propertyParameterGroups
Get a collection of command parameters.
Public propertyParameterItems
Get a collection of parameter items.
Public propertyUniqueName
Get a unique name for the command
Top
Methods
  NameDescription
Public methodClearParameters
clear all parameters.
Public methodDrawShapeRubberBand(Shape)
Draw the rubber band of the specified shape.
Public methodDrawShapeRubberBand(Shape)
Draw the rubber band of the specified shape.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExecute
Execute the command.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetParameterItemByID
Get the parameter item with the specified parameter ID.
Public methodGetParameterItemByName
Get the current parameter item with the specified parameter name.
Public methodGetTemporaryParameterItemByID
Get a temporary parameter item with the specified parameter ID.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveToFirstEmptyParameter
Set the first empty parameter to the current.
Public methodMoveToNextParameter
Set the next empty parameter to the current.
Protected methodOnBegin
Raise a Begin event.
Protected methodOnDraw
Raise Draw event.
Protected methodOnEnd
Generate an event.
Protected methodOnInitialized
Raise the Initialized event.
Protected methodOnMouseMove
Raise MouseMove event.
Protected methodOnParameterChanged
Raises the ParameterChanged event.
Protected methodOnParameterGroupCurrentIndexChanged
Raises the ParameterGroupCurrentIndexChanged event.
Public methodSelectParameters
Select the parameter with the specified name.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventBegin
Occurs when starting the command.
Public eventDraw
Occurs when the mouse cursor moves over the paper or part drawing view during command.
Public eventEnd
Occurs when exiting the command.
Public eventInitialized
Occurs when the command is initialized.
Public eventMouseMove
Occurs when the mouse cursor moves over the paper or part drawing view during command.
Public eventParameterChanged
Occurs when the parameter is changed.
Public eventParameterGroupCurrentIndexChanged
Occurs when the current parameter item of the parameter group is changed.
Top
See Also