Main Content

getDocumentAttributeProperties

Retrieve document attribute properties in Safety Analysis Manager spreadsheet

Since R2024b

Description

properties = getDocumentAttributeProperties(spreadsheet) returns the document attribute properties in the Safety Analysis Manager spreadsheet, spreadsheet.

example

Examples

collapse all

Create a new spreadsheet in the Safety Analysis Manager.

mySpreadsheet = safetyAnalysisMgr.newSpreadsheet;

Add three document attributes to the spreadsheet by using the addDocumentAttribute function.

addDocumentAttribute(mySpreadsheet,property="myAttribute1",value="1")
addDocumentAttribute(mySpreadsheet,property="myAttribute2",value="2")
addDocumentAttribute(mySpreadsheet,property="myAttribute3",value="3")

Retrieve the document attribute properties.

docProperties = getDocumentAttributeProperties(mySpreadsheet)
docProperties = 

  1×3 string array

    "myAttribute1"    "myAttribute2"    "myAttribute3"

Input Arguments

collapse all

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

Output Arguments

collapse all

Properties of the document attributes, returned as a string array.

Version History

Introduced in R2024b