Contenu principal

safetyAnalysisMgr.getOpenDocuments

R2026b

Retrieve open documents in Safety Analysis Manager

Since R2023b

Description

documents = safetyAnalysisMgr.getOpenDocuments returns the open documents in the Safety Analysis Manager.

example

Examples

collapse all

Suppose that you load only one spreadsheet in the Safety Analysis Manager. The spreadsheet file is named mySpreadsheet, is saved in C:\myFolder, and contains two rows and two columns. Retrieve the Spreadsheet object of the open spreadsheet in the Safety Analysis Manager.

mySpreadsheet = safetyAnalysisMgr.getOpenDocuments
mySpreadsheet = 

  Spreadsheet with properties:

    FileName: 'C:\myFolder\mySpreadsheet.mldatx'
        Rows: 2
     Columns: 2
 Description: ''

Suppose that you load two spreadsheets in the Safety Analysis Manager. Retrieve the Spreadsheet objects of the spreadsheets.

mySpreadsheets = safetyAnalysisMgr.getOpenDocuments
mySpreadsheets = 

  1×2 Spreadsheet array with properties:

    FileName
    Rows
    Columns
    Description

Since R2026b

Suppose that you load a spreadsheet and a fault tree document in the Safety Analysis Manager. Retrieve the Spreadsheet and FaultTreeDocument object of the spreadsheet and fault tree document.

 myDocuments = safetyAnalysisMgr.getOpenDocuments
myDocuments = 

  1×2 heterogeneous Document (Spreadsheet, FaultTreeDocument) array with properties:

    FileName
    Description

Output Arguments

collapse all

Open documents in the Safety Analysis Manager, returned as a heterogeneous array of Spreadsheet and FaultTreeDocument objects. The function arranges the documents in the array based on when the document is loaded. The first loaded document has an index of 1, and the last loaded document has the last index of the array.

Version History

Introduced in R2023b

expand all