Main Content

renameDocumentAttribute

Rename document attributes in spreadsheets

Since R2023b

Description

renameDocumentAttribute(spreadsheet,property,newProperty) updates the specified property of a document attribute with a new property, newProperty in the Safety Analysis Manager spreadsheet, spreadsheet.

example

Examples

collapse all

Create a new spreadsheet in the Safety Analysis Manager.

mySpreadsheet = safetyAnalysisMgr.newSpreadsheet;

Add a document attribute to the spreadsheet by using the addDocumentAttribute function.

addDocumentAttribute(mySpreadsheet,property="myAttribute1",value="1")

Update the property of the document attribute to updatedAttribute1.

renameDocumentAttribute(...
mySpreadsheet,"myAttribute1","updatedAttribute1")

Input Arguments

collapse all

Spreadsheet in the Safety Analysis Manager, specified as a Spreadsheet object.

Property of existing document attribute, specified as a string scalar or character vector.

Data Types: char | string

Updated property of existing document attribute, specified as a string scalar or character vector.

Data Types: char | string

Version History

Introduced in R2023b