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.On the left side of the Expression dialog opens.
Select Create operation → Script, click Create operation and select Script operation.
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 var prj = com.nomagic.magicdraw.core.Application.getInstance().getProject().getPrimaryProject(); var ver = com.nomagic.magicdraw.core.ProjectUtilities.getVersion(prj); ver.getName();
- Click OK.
...