Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
DocumentGenerator Class
The DocumentGenerator Class can be accessed from the Repository using CreateProjectGenerator(). The returned interface provides access to the XML-based Enterprise Architect Automation Interface. Use this interface to get XML for the various internal elements and to run some utility functions to perform tasks such as load diagrams or run reports.
DocumentGenerator Attributes:
Attribute |
Type |
Notes |
---|---|---|
ObjectType |
Read only. Distinguishes objects referenced through a Dispatch interface. |
Document Generator Methods:
Method |
Type |
Notes |
---|---|---|
DocumentDiagram (long DiagramID, long nDepth, string templateName) |
Boolean |
Documents a diagram. Parameters:
|
DocumentElement (long ElementID, long nDepth, string templateName) |
Boolean |
Documents an element. Parameters:
|
DocumentModelAuthor (string name, long nDepth, string templateName) |
Boolean |
Documents a model author. Parameters:
|
DocumentModelClient (string name, long nDepth, string templateName) |
Boolean |
Documents a single model client. Parameters:
|
DocumentModelGlossary (long id, long nDepth, string templateName) |
Boolean |
Documents a single model glossary term. Parameters:
|
DocumentModelIssue (long id, long nDepth, string templateName) |
Boolean |
Documents a single model issue. Parameters:
|
DocumentModelResource (string name, long nDepth, string templateName) |
Boolean |
Documents a single model resource. Parameters:
|
DocumentModelRole (string name, long nDepth, string templateName) |
Boolean |
Documents a single model role. Parameters:
|
DocumentModelTask (long id, long nDepth, string templateName) |
Boolean |
Documents a single model task. Parameters:
|
DocumentPackage (long PackageID, long nDepth, string templateName) |
Boolean |
Documents a package. Parameters:
|
GetLastError() |
String |
Returns a string value describing the most recent error that occurred in relation to this object. |
Boolean |
Inserts a break into the report at the current location. Parameters:
|
|
InsertLinkedDocument (string guid) |
Boolean |
Inserts a linked document into the report at the current location. A linked document can used to set the header and footer of the report. These are taken from the first linked document added to the report. Parameters:
|
InsertTableOfContents |
Boolean |
Inserts a Table of Contents at the current position. |
InsertTeamReviewPost (string path) |
Boolean |
Inserts a Team Review posting into the report at the current location. Parameters:
|
InsertText (string Text, string styple |
Boolean |
Inserts some static text into the report at the current location. No carriage return is added, so remember to add one if required. Parameters:
|
NewDocument (string templateName) |
Boolean |
Starts a new document; must be called before attempting to document anything else. Parameters:
|
ReplaceField (string fieldname, string fieldvalue) |
Boolean |
Updates the fieldname with the value given. If you call this function more than once with the same fieldname, the field only has the last value set. Parameters:
|
Boolean |
Saves the document to disk. Parameters:
|