类:slreq。参考
包:slreq
设置引用的需求自定义属性
propertyValue setAttribute (ref, propertyName)
setAttribute (
设置引用的需求属性。使用此方法设置为需求集定义的自定义属性的值。裁判
,propertyName
,propertyValue
)
%加载一个需求集文件并获取一个需求的句柄rs = slreq.load (“C: \ MATLAB \ My_Requirements_Set_1.slreqx”);ref1 =找到(rs,“类型”,“参考”,“ID”,“R20.1”);%设置ref1的Priority(自定义属性)setAttribute (ref1,“优先”,“低”);