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

3 次查看(过去 30 天)
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?

采纳的回答

Pat Canny
Pat Canny 2022-3-10
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.

更多回答(0 个)

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by