Main Content

Customize and Extend Requirements Toolbox

Customize requirements, links, the Requirements Editor, and import and save behaviors

Customize and extend requirements and links by creating custom types and properties and editing the requirements index numbering. Customize the Requirements Editor by adding frequently used commands to the quick access toolbar and by configuring views and filters. Customize how requirements import and update, and automate requirement set load and save tasks by using callbacks.

Apps

Requirements EditorCreate and edit requirements
Profile EditorCreate and manage profiles with stereotypes and properties

Functions

slreq.importViewSettingsImport view settings
slreq.exportViewSettingsExport view settings
slreq.resetViewSettingsReset saved view settings
slreq.refreshCustomizationsRegister Requirements Toolbox customizations (Since R2022a)
rmiprefGet or set Requirements Toolbox preferences stored in prefdir

Classes

expand all

slreq.LinkSet Work with link sets
slreq.LinkTraceable link
slreq.ReqSet Work with requirement sets
slreq.Reference Work with external requirement proxy objects
slreq.JustificationRequirement justifications
slreq.callback.CustomImportOptionsCustom import options (Since R2022a)
slreq.callback.DOORSImportOptionsIBM DOORS import options (Since R2022a)
slreq.callback.MSExcelImportOptionsMicrosoft Excel import options (Since R2022a)
slreq.callback.MSWordImportOptionsMicrosoft Word import options (Since R2022a)
slreq.callback.ReqIFImportOptionsReqIF import options (Since R2022a)

Methods

expand all

Customize Links by Using Stereotypes

importProfileAssign profile to ink set
profilesGet profiles assigned to link set
removeProfileRemove profile from link set

Custom Links by Using Custom Attributes

addAttributeAdd custom attribute to link set
inspectAttributeGet information about link set custom attribute
updateAttributeUpdate information for link set custom attribute
deleteAttributeDelete custom attribute from link set
getAttributeGet link property values
setAttributeSet link property values
isFilteredInCheck filtered links

Customize Requirements by Using Stereotypes

importProfileAssign profile to requirement set
profilesGet profiles assigned to requirement sets
saveProfileMappingSave profile mapping to XML file
removeProfileRemove profile from requirement set

Custom Requirements by Using Custom Attributes

addAttributeAdd custom attribute to requirement set
inspectAttributeGet information about requirement set custom attribute
updateAttributeUpdate information for requirement set custom attribute
deleteAttributeDelete custom attribute from requirement set

Automate Load and Save Tasks

getPostLoadFcnGet contents of PostLoadFcn callback
getPreSaveFcnGet contents of PreSaveFcn callback
setPostLoadFcnAssign PostLoadFcn callback script
setPreSaveFcnAssign PreSaveFcn callback script
getAttributeGet requirement property values
setAttributeSet requirement property values
isFilteredInCheck filtered requirements

Customize Import Behavior

getPostImportFcnGet contents of PostImportFcn callback
getPreImportFcnGet registered PreImportFcn callback script
setPostImportFcnAssign PostImportFcn callback script
setPreImportFcnAssign PreImportFcn callback script
setParentSet parent of referenced requirement in PostImportFcn callback
moveUpMove referenced requirement up in hierarchy
moveDownMove referenced requirement down in hierarchy

Customize Imported Requirements

getAttributeGet referenced requirement custom attributes
setAttributeSet referenced requirement custom attributes
isFilteredInCheck filtered referenced requirements
getAttributeGet justification attributes
setAttributeSet justification attributes
isFilteredInCheck filtered justifications

Objects

slreq.ViewView settings (Since R2022b)

Topics

Customize Requirements and Links

Customize the Requirements Editor

Customize Behaviors by Using Callbacks

Featured Examples