Class RevitAppBase<TContainer>
The implementation of a generic IContainer type, if you like to use Container, you can use RevitApp implementation instead
IMPORTANT: Any children of this class should implement ContainerProviderAttribute as well
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.Applications
Assembly: Onbox.Revit.dll
Syntax
public abstract class RevitAppBase<TContainer> : RevitContainerProviderBase, IRevitExternalApp, IExternalApplication where TContainer : class, IContainer, new()
Type Parameters
Name | Description |
---|---|
TContainer | The contract for container implementations |
Methods
| Improve this Doc View SourceOnCreateRibbon(IRibbonManager)
Lifecycle hook to create Ribbon UI when Revit starts.
Declaration
public virtual void OnCreateRibbon(IRibbonManager ribbonManager)
Parameters
Type | Name | Description |
---|---|---|
IRibbonManager | ribbonManager |
OnShutdown(UIControlledApplication)
Implement this method to execute some tasks when Autodesk Revit shuts down.
Declaration
public Result OnShutdown(UIControlledApplication application)
Parameters
Type | Name | Description |
---|---|---|
Autodesk.Revit.UI.UIControlledApplication | application |
Returns
Type | Description |
---|---|
Autodesk.Revit.UI.Result |
OnShutdown(IContainerResolver, UIControlledApplication)
Implement this method to execute some tasks when Autodesk Revit shuts down.
Declaration
public abstract Result OnShutdown(IContainerResolver container, UIControlledApplication application)
Parameters
Type | Name | Description |
---|---|---|
IContainerResolver | container | |
Autodesk.Revit.UI.UIControlledApplication | application |
Returns
Type | Description |
---|---|
Autodesk.Revit.UI.Result |
OnStartup(UIControlledApplication)
Implement this method to execute some tasks when Autodesk Revit starts.
Declaration
public Result OnStartup(UIControlledApplication application)
Parameters
Type | Name | Description |
---|---|---|
Autodesk.Revit.UI.UIControlledApplication | application |
Returns
Type | Description |
---|---|
Autodesk.Revit.UI.Result |
OnStartup(IContainer, UIControlledApplication)
Implement this method to execute some tasks when Autodesk Revit starts.
Declaration
public abstract Result OnStartup(IContainer container, UIControlledApplication application)
Parameters
Type | Name | Description |
---|---|---|
IContainer | container | |
Autodesk.Revit.UI.UIControlledApplication | application |
Returns
Type | Description |
---|---|
Autodesk.Revit.UI.Result |
Implements
Autodesk.Revit.UI.IExternalApplication