Main Content

close

Class: slreq.ReqSet
Namespace: slreq

Close requirement sets

Syntax

close(rs)

Description

close(rs) closes the requirement set rs. If the requirement set has unsaved changes, the software prompts you to save the requirement set before closing it.

Input Arguments

expand all

Requirement set, specified as an slreq.ReqSet object.

Examples

expand all

This example shows how to load and edit requirement sets, then save and close them.

Load the requirement set basicReqSet.

rs = slreq.load("basicReqSet");

Add a description to the requirement set.

rs.Description = "My requirement set";

Save the requirement set.

save(rs);

Close the requirement set.

close(rs);

Tips

  • To close a requirement set regardless of whether or not it has unsaved changes, use the discard function.

  • To save the requirement set before closing, use the save function.

  • To close all requirement sets and link sets without saving, and close the Requirements Editor, use the slreq.clear function.

Version History

Introduced in R2018a

See Also

Classes

Functions