Class RevitContainerCommandBase<TContainerPipeline, TContainer>
An indepentend Revit Command that will create a new container instance and use it during the command runtime. Use this when an ExternalApplication is not necessary.
It uses a Container Pipeline to compose the container.
After the command finishes the container will be disposed.
Inheritance
System.Object
RevitContainerCommandBase<TContainerPipeline, TContainer>
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 RevitContainerCommandBase<TContainerPipeline, TContainer> : IExternalCommand, IRevitDestroyableCommand where TContainerPipeline : class, IContainerPipeline, new()
where TContainer : class, IContainer, new()
Type Parameters
Name | Description |
---|---|
TContainerPipeline | |
TContainer |
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 container is disposed.
Declaration
public virtual void OnDestroy(IContainerResolver container)
Parameters
Type | Name | Description |
---|---|---|
IContainerResolver | container |
Implements
Autodesk.Revit.UI.IExternalCommand