Main Content

discard

Class: slreq.ReqSet
Namespace: slreq

Close requirement set without saving

Syntax

discard(rs)

Description

discard(rs) closes the requirement set rs without saving.

Input Arguments

expand all

Requirement set, specified as an slreq.ReqSet object.

Examples

expand all

This example shows how to discard changes to a requirement set without saving.

Load the crs_req_func_spec requirement set.

rs = slreq.load("crs_req_func_spec");

Set the description of the requirement set to crs_req_func_spec.

rs.Description = "crs_req_func_spec";

Discard the changes to the requirement set without saving.

discard(rs)

Tips

  • To close a requirement set and receive a prompt if there are unsaved changes, use the close function.

  • To save the requirement set before discarding, 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 R2017b

See Also

Classes

Functions