Class RevitAppCommand<TApplication>
Base class to implement Revit Commands linked to a App Container
It will use a scope of the container declared on the App
Inheritance
System.Object
RevitAppCommand<TApplication>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Onbox.Revit.V8.Commands
Assembly: Onbox.Revit.dll
Syntax
public abstract class RevitAppCommand<TApplication> : IExternalCommand, IRevitDestroyableCommand where TApplication : RevitApp, new()
Type Parameters
Name | Description |
---|---|
TApplication |
Methods
| Improve this Doc View SourceExecute(ExternalCommandData, ref String, ElementSet)
Execution of External Command
Declaration
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
Parameters
Type | Name | Description |
---|---|---|
Autodesk.Revit.UI.ExternalCommandData | commandData | |
System.String | message | |
Autodesk.Revit.DB.ElementSet | elements |
Returns
Type | Description |
---|---|
Autodesk.Revit.UI.Result |
Execute(IContainerResolver, ExternalCommandData, ref String, ElementSet)
Execution of External Command
Declaration
public abstract Result Execute(IContainerResolver container, ExternalCommandData commandData, ref string message, ElementSet elements)
Parameters
Type | Name | Description |
---|---|---|
IContainerResolver | container | |
Autodesk.Revit.UI.ExternalCommandData | commandData | |
System.String | message | |
Autodesk.Revit.DB.ElementSet | elements |
Returns
Type | Description |
---|---|
Autodesk.Revit.UI.Result |
OnDestroy(IContainerResolver)
External Command lifecycle hook which is called just before the scoped container is disposed.
Declaration
public virtual void OnDestroy(IContainerResolver container)
Parameters
Type | Name | Description |
---|---|---|
IContainerResolver | container |
Implements
Autodesk.Revit.UI.IExternalCommand