メインコンテンツ

slreq.ReqSet.removeUnusedImages

Class: slreq.ReqSet
Namespace: slreq

Remove unused images from requirement set

Since R2025a

Description

slreq.ReqSet.removeUnusedImages(reqSetName) deletes images that the requirements do not reference from the imported requirement set, reqSetName. Use this function to reduce the requirement set file size.

example

Input Arguments

expand all

File name of the requirement set, including the file extension, specified as a string scalar or a character vector.

Example: "myReqSet.slreqx"

Examples

expand all

Remove the images that the requirements do not reference from the requirement set myReqSet.slreqx.

reqSetName = "myReqSet.slreqx";
slreq.ReqSet.removeUnusedImages(reqSetName)
Checking entries of type slreq.data.Requirement .................
myReqSet.slreqx resaved. Old size: 1017Kb, new size: 713Kb

Tips

  • When you import requirements that contain images from a third-party tool, delete the requirements that reference those images in the third-party tool, then update the imported requirement set, the requirement set does not delete the images that its requirements do not reference. Use slreq.ReqSet.removeUnusedImages to remove the unused images and reduce the file size of the requirement set.

Version History

Introduced in R2025a