Page History
...
- Right-click the empty space on the diagram pane and open the Specification window.
- On the left side of the dialog, select Traceability and click Create. Expression dialog opens.
Select Create operation → operation > Script.
Note If you cannot see the Script operation under Operations, make sure the Expert mode is enabled.
- Specify the Name for the derived property.
- Set the Type as String.
- Specify the Operation Name.
- From the Language drop-down list, select JavaScript Rhino.
Insert the following script as the Body.
Code Block title JavaScript Rhino var prj = com.nomagic.magicdraw.core.Application.getInstance().getProject().getPrimaryProject(); var ver = com.nomagic.magicdraw.core.ProjectUtilities.getVersion(prj); ver.getName();
- Click OK.
...