changes.mady.by.user user-52ec1
Saved on Feb 28, 2019
On this page
$project is a project reference enabling a template to return the project information.
Returns a project name.
Gets a project title.
Gets a project filename.
Gets a project filename extension.
This function is only for local projects.
Get a project directory name.
Returns a list of version information from an open Server project.
Returns a file type. A file type is one of the following values:
Returns all existing diagrams stored in a particular project.
Returns existing diagrams of a given type stored in a particular project.
#set($classDiagram = $project.getDiagrams("Class Diagram")) #foreach($cl in $classDiagram) $cl.name #end
Returns all existing presentation diagrams stored in a particular project.
-
Returns all existing presentation diagrams of a given type stored in a particular project.
#set($classDiagram = $project.getPresentationDiagrams("Class Diagram")) #foreach($cl in $classDiagram) $cl.name #end
Returns the remote or non-remote state of a project.
Returns true if that particular project was modified after it had been saved or loaded.
Returns an element with a given ID.
#set($ele = $project.getElementByID("_9_0_62a020a_1105704887361_983947_8206")) $ele.name
$ele.humanType
Returns a collection of all element IDs in a project.
Returns the XMI version of a project.
Return a project version number.
Returns a model (the root container of all model structures).
$project.getModel() is deprecated since MagicDraw 18.2, please use $project.getPrimaryModel() instead
Returns the primary (main) model of the project (not including the ones from modules (attached projects)).
Returns a list of models in the project (the primary model of the project and all the models of the modules(attached projects)).
auxiliary
Returns a list of shared modules from a specified module.
This function returns the list of used server modules as well as auxiliary resources.
This function returns a list of used local modules as well as auxiliary resources.
This function returns a list of auxiliary resources.
#foreach ($module in $project.getModuleList()) name : $module.representationSpring description : $module.description version : $module.version required version : $module.requiredVersion shared module : #foreach ($child in $project.getSharedModule($module)) - $child.representationString #end #end