Main Content

本页采用了机器翻译。点击此处可查看英文原文。

unlockAll

类: slreq.Reference
命名空间: slreq

解锁所有子引用需求以供编辑

语法

unlockAll(topRef)

说明

unlockAll(topRef) 解锁顶部导入节点 topRef 的所有子引用需求。

输入参数

全部展开

导入节点,指定为 slreq.Reference 对象。

示例

解锁父级引用需求的所有子级

% Load a requirement set file
rs = slreq.load('C:\MATLAB\My_Requirement_Set_1.slreqx');

% Find all referenced requirements in the requirement set
allRefs = find(rs, 'Type', 'Reference')

allRefs = 

  1×25 Reference array with properties:

    Id
    CustomId
    Artifact
    ArtifactId
    Domain
    UpdatedOn
    CreatedOn
    CreatedBy
    ModifiedBy
    IsLocked
    Summary
    Description
    Rationale
    Keywords
    Type
    SID
    FileRevision
    ModifiedOn
    Dirty
    Comments

% Unlock all child referenced requirements of the top Import node  
unlockall(allRefs(1))

版本历史记录

在 R2019a 中推出

另请参阅