메소드 | 설명 | |
---|---|---|
Dispose ( ) : void |
Release the file handling
|
|
DocMappedSheetInfo ( int hashCode, |
Get the sheet information of document.
|
|
DocMonitored ( int docHashcode ) : bool |
Check if document is monitored by this event reactor
|
|
DocumentClosed ( object sender, DocumentClosedEventArgs e ) : void |
Removed the document which was closed, event reactor doesn't need to monitor this document any more. DocumentId is designed to identify one document, it's equal to hash code of this document.
|
|
DocumentSaving ( object sender, DocumentSavingEventArgs e ) : void |
Delegate for document save event, it will update spreadsheet if document was mapped to spreadsheet.
|
|
DocumentSavingAs ( object sender, DocumentSavingAsEventArgs e ) : void |
Delegate for document save as event, it will update spreadsheet if document was mapped to spreadsheet.
|
|
EventsReactor ( String logFile ) : System |
This class will dump information to log file to tell user what happened
|
|
UpdateSheeInfo ( int hashCode, |
Update or reset the sheet information to which document is being mapped.
|
메소드 | 설명 | |
---|---|---|
DumpLog ( String strLog ) : void |
Dump log file now
|
|
SetExternalRoomIdToRoomId ( Room room ) : bool |
Set shared parameter (whose name is "External Room ID") value to Room.Id.IntegerValue
|
|
UpdateMappedSpreadsheet ( System.Windows.Forms.Document activeDocument ) : void |
Update mapped spread sheet when document is about to be saved or saved as This method will update spread sheet room data([Area] column) with actual area value of mapped Revit Room. or add Revit room to spreadsheet if it is not mapped to room of spreadsheet. ///
|
|
ValidateRevitRoom ( System.Windows.Forms.Document activeDocument, Room room, double &roomArea, String &externalId ) : bool |
Check to see if we need to update spreadsheet data according to this Revit room. We don't need to update spreadsheet rooms if Revit room: . Which is one unplaced room. . The room has area which is zero. . Special room which doesn't have custom shared parameter at all.
|
public DocMappedSheetInfo ( int hashCode, |
||
hashCode | int | The hash code of document. |
sheetInfo | The mapped spread file and sheet information. | |
리턴 | bool |
public DocMonitored ( int docHashcode ) : bool | ||
docHashcode | int | Hashcode of document. |
리턴 | bool |
public DocumentClosed ( object sender, DocumentClosedEventArgs e ) : void | ||
sender | object | |
e | DocumentClosedEventArgs | |
리턴 | void |
public DocumentSaving ( object sender, DocumentSavingEventArgs e ) : void | ||
sender | object | Event sender. |
e | DocumentSavingEventArgs | EventArgs of this event. |
리턴 | void |
public DocumentSavingAs ( object sender, DocumentSavingAsEventArgs e ) : void | ||
sender | object | Event sender. |
e | DocumentSavingAsEventArgs | EventArgs of this event. |
리턴 | void |
public UpdateSheeInfo ( int hashCode, |
||
hashCode | int | Hash code of document used as key to find mapped spreadsheet. |
newSheetInfo | New value for spreadsheet. | |
리턴 | void |