An object reference, which will be $importer in the template file. You can use the $importer variable in the template file to get data.
Return
-
java.lang.String
An output pathname. It will return an empty string if there is an error.
$file.createAndWait(templateFilename)
Open a new template engine to generate a report and return a path to generate the file. The generated report will be given the template filename. For example:
Code Block
language
text
$file.createAndWait('overview.html')
Name
Type
Description
Parameter(s)
templateFilename
java.lang.String
The templateFilename parameter can be either an absolute or relative path to a file in the file system.
If the file is not found in the file system, the filename would be searched as an Attached File Element in a MagicDraw project in the File property.
Return
-
java.lang.String
An absolute path to generate a file.
$file.createAndWait(attachedFile)
Open a new template engine to generate a report and return a path to generate the file. The generated report will be given the template filename. For example:
Open a new template engine to generate a report and return a path to generate the file. The generated report will be named after the template filename. For example:
Code Block
language
text
$file.createAndWait('overview.html',$var)
Name
Type
Description
Parameter(s)
templateFilename
java.lang.String
The templateFilename parameter can be either an absolute or relative path to a file in the file system.
If the file is not found in the file system, the filename would be searched as an Attached File Element in a MagicDraw project in the File property.
contextValue
java.lang.Object
An additional object added to a new template context with a default $importer name.
Return
java.lang.String
$file.createAndWait(attachedFile, contextValue)
Open a new template engine to generate a report and return a path to generate the file. The generated report will be named after the template filename. For example:
Open a new template engine to generate a report and return a path to generate the file. "importer" will be used as the name of a context value. For example:
Open a new template engine to generate a report and return a path to generate the file. "importer" will be used as the name of a context value. For example: