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

1 ビュー (過去 30 日間)
Pat Canny
Pat Canny 2022 年 3 月 10 日
回答済み: Pat Canny 2022 年 3 月 10 日
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