C# Class RoomEditorApp.DbUpdater

Inheritance: IExternalEventHandler
Afficher le fichier Open project: jeremytammik/RoomEditorApp Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

DbUpdater() public méthode

public DbUpdater ( UIApplication uiapp ) : System
uiapp UIApplication
Résultat System

Execute() public méthode

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
Résultat void

GetName() public méthode

Required IExternalEventHandler interface method returning a descriptive name.
public GetName ( ) : string
Résultat string

SetLastSequence() public static méthode

Determine and set the last sequence number after updating database.
public static SetLastSequence ( ) : int
Résultat int

ToggleSubscription() public static méthode

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
Résultat void

UpdateBim() public méthode

Apply all current cloud database changes to the BIM.
public UpdateBim ( ) : void
Résultat void