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

3 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Pat Canny
Pat Canny il 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.

Più risposte (0)

Prodotti


Release

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by