C# Класс RoomEditorApp.DbUpdater

Наследование: IExternalEventHandler
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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