Main Content

Update Reference Requirement Links from Imported File

After importing requirement links from a file, update links to reference requirements for the model to make full use of the Requirements Toolbox™ functionality.

model = systemcomposer.openModel("reqImportExample");

Note: Importing or linking requirements may not work with a web-based Microsoft® Office file stored in SharePoint or OneDrive. Use a local copy of the file.

Import Requirement Links from Word File

Open the Microsoft® Word file Functional_Requirements.docx with the requirements listed. Highlight the requirement to link.

In the model, select the component to which to link the requirement. Right-click the component and select Requirements > Link to Selection in Word.

link_selection_to_word.png

Export Model and Save to External File

Export the model and save to an external file.

exportedSet = systemcomposer.exportModel("reqImportExample");
SaveToExcel("exportedModel",exportedSet);

Import Requirement Links from File and Import to Model

Use the external file to import requirement links into another model.

structModel = ImportModelFromExcel("exportedModel.xls","Components","Ports", ...
"Connections","PortInterfaces","RequirementLinks");
structModel.readTableFromExcel

systemcomposer.importModel("reqNewExample",structModel.Components, ...
structModel.Ports,structModel.Connections,structModel.Interfaces,structModel.RequirementLinks);

Update Links to Reference Requirements

To integrate the requirement links to the model, update references within the model.

systemcomposer.updateLinksToReferenceRequirements("reqNewExample","linktype_rmi_word","Functional_Requirements.docx")

Open the Requirements perspective from the bottom right corner of the model palette to view the requirements.

2021-04-08_15-06-58.png

See Also

| |

Related Topics