C# Class RoomEditorApp.DbUpdater

Inheritance: IExternalEventHandler
Mostrar archivo Open project: jeremytammik/RoomEditorApp Class Usage Examples

Public Methods

Method 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

Method 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 method

public DbUpdater ( UIApplication uiapp ) : System
uiapp UIApplication
return System

Execute() public method

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
return void

GetName() public method

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

SetLastSequence() public static method

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

ToggleSubscription() public static method

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
return void

UpdateBim() public method

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