C# 클래스 RoomEditorApp.DbUpdater

상속: IExternalEventHandler
파일 보기 프로젝트 열기: jeremytammik/RoomEditorApp 1 사용 예제들

공개 메소드들

메소드 설명
DbUpdater ( UIApplication uiapp ) : System
Execute ( UIApplication a ) : void

Execute method invoked by Revit via the external event as a reaction to a call to its Raise method.

GetName ( ) : string

Required IExternalEventHandler interface method returning a descriptive name.

SetLastSequence ( ) : int

Determine and set the last sequence number after updating database.

ToggleSubscription ( UIApplication uiapp ) : void

Toggle subscription to automatic database updates. Forward the call to the external application that creates the external event, store it and launch a separate thread checking for database updates. When changes are pending, invoke the external event Raise method.

UpdateBim ( ) : void

Apply all current cloud database changes to the BIM.

비공개 메소드들

메소드 설명
CheckForPendingDatabaseChanges ( ) : void

Repeatedly check database status and raise external event when updates are pending. Relinquish control and wait for timeout period between each attempt. Run in a separate thread.

GetForegroundWindow ( ) : IntPtr
SetForegroundWindow ( IntPtr hWnd ) : bool
UpdateBimFurniture ( RoomEditorApp.DbFurniture f ) : bool

Update a piece of furniture. Return true if anything was changed.

메소드 상세

DbUpdater() 공개 메소드

public DbUpdater ( UIApplication uiapp ) : System
uiapp UIApplication
리턴 System

Execute() 공개 메소드

Execute method invoked by Revit via the external event as a reaction to a call to its Raise method.
public Execute ( UIApplication a ) : void
a UIApplication
리턴 void

GetName() 공개 메소드

Required IExternalEventHandler interface method returning a descriptive name.
public GetName ( ) : string
리턴 string

SetLastSequence() 공개 정적인 메소드

Determine and set the last sequence number after updating database.
public static SetLastSequence ( ) : int
리턴 int

ToggleSubscription() 공개 정적인 메소드

Toggle subscription to automatic database updates. Forward the call to the external application that creates the external event, store it and launch a separate thread checking for database updates. When changes are pending, invoke the external event Raise method.
public static ToggleSubscription ( UIApplication uiapp ) : void
uiapp UIApplication
리턴 void

UpdateBim() 공개 메소드

Apply all current cloud database changes to the BIM.
public UpdateBim ( ) : void
리턴 void