How do I open the Requirements Editor in Requirements Toolbox directly to a specific requirement?

3 views (last 30 days)
I want to open the Requirements Editor directly to a specific requirement in a requirement set.
Is there a command I could use to do this?

Accepted Answer

Pat Canny
Pat Canny on 10 Mar 2022
You can use the navigate method in the RMI API to do this.
Here is the syntax:
rmi.navigate('linktype_rmi_slreq',RequirementSetName,RequirementID)
For example, if I have a requirement set named 'CruiseControl', and I know the ID of the requirement of interest is 29, I would use this command:
rmi.navigate('linktype_rmi_slreq','CruiseControl.slreqx','29')
The ID can be found in the ID column in the Requirements Editor. You can also use other functions in the Requirements Toolbox APIs to get additional requirement object attributes, such as slreq.Requirement. The requirement ID is the "SID" property for a Requirement object.

More Answers (0)

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!