C# 클래스 Revit.SDK.Samples.AutoUpdate.CS.ExternalApplication

상속: IExternalApplication
파일 보기 프로젝트 열기: AMEE/revit

공개 메소드들

메소드 설명
OnShutdown ( UIControlledApplication application ) : Autodesk.Revit.UI.Result

Implement this method to implement the external application which should be called when Revit is about to exit,Any documents must have been closed before this method is called.

OnStartup ( UIControlledApplication application ) : Autodesk.Revit.UI.Result

Implement this method to subscribe event.

application_DocumentOpened ( object sender, DocumentOpenedEventArgs args ) : void

This is the event handler. We modify the model and dump log in this method.

비공개 메소드들

메소드 설명
CloseLogFile ( ) : void

Close the log file and remove the corresponding listener.

CreateTempFile ( ) : void

Create a log file to track the subscribed events' work process.

DumpEventArgs ( DocumentOpenedEventArgs args ) : void

Dump the events arguments to log file: AutoUpdat.log.

메소드 상세

OnShutdown() 공개 메소드

Implement this method to implement the external application which should be called when Revit is about to exit,Any documents must have been closed before this method is called.
public OnShutdown ( UIControlledApplication application ) : Autodesk.Revit.UI.Result
application UIControlledApplication An object that is passed to the external application /// which contains the controlled application.
리턴 Autodesk.Revit.UI.Result

OnStartup() 공개 메소드

Implement this method to subscribe event.
public OnStartup ( UIControlledApplication application ) : Autodesk.Revit.UI.Result
application UIControlledApplication the controlled application.
리턴 Autodesk.Revit.UI.Result

application_DocumentOpened() 공개 메소드

This is the event handler. We modify the model and dump log in this method.
public application_DocumentOpened ( object sender, DocumentOpenedEventArgs args ) : void
sender object
args DocumentOpenedEventArgs
리턴 void