FaultTreeDocument
R2026bDescription
FaultTreeDocument objects represent fault tree documents in the
Safety Analysis Manager. Use FaultTreeDocument objects to manage fault
trees and their artifacts, such as events, gates, and failure models. After evaluating
FaultTreeDocument objects, you can retrieve the evaluation
results.
Creation
To create a FaultTreeDocument object:
Use the
safetyAnalysisMgr.newDocumentfunction to create a new fault tree document in the Safety Analysis Manager.Use the
safetyAnalysisMgr.openDocumentfunction to open a fault tree document in the Safety Analysis Manager.Use the
safetyAnalysisMgr.getOpenDocumentsfunction to retrieve the open fault tree documents in the Safety Analysis Manager.In the Safety Analysis Manager, select the fault tree document and use the
safetyAnalysisMgr.getCurrentDocumentfunction.
Properties
Object Functions
acceptAllChanges | Accept detected changes to linked artifacts in Safety Analysis Manager |
addCallback | Add custom callback to Safety Analysis Manager spreadsheets |
addDocumentAttribute | Add document attribute to spreadsheet in Safety Analysis Manager |
clearFlags | Clear flags in Safety Analysis Manager spreadsheet and fault tree document elements |
close | Close document in Safety Analysis Manager |
convertGateToTree | Convert fault tree gates and inputs into fault trees |
createEvent | Add event to fault tree document or gate |
createFailureModel | Create failure model in fault tree document |
createFaultTree | Create fault tree in fault tree document |
deleteCallback | Delete custom callback from Safety Analysis Manager documents |
deleteDocumentAttribute | Delete document attributes in spreadsheet in Safety Analysis Manager |
deleteEvent | Delete event from a fault tree document |
deleteFailureModel | Delete failure model from fault tree document |
deleteFaultTree | Delete fault tree from fault tree document |
deleteSubtree | Delete subtree in fault tree document |
detectChanges | Detect changes to linked artifacts in Safety Analysis Manager document |
enableCallback | Enable or disable callbacks in Safety Analysis Manager spreadsheets |
evaluate | Evaluate failure parameters and cutsets of fault trees |
exportToPDF | Export fault trees and fault tree documents to PDF |
getCallback | Retrieve spreadsheet callback code in Safety Analysis Manager |
getChanges | Get changed artifacts linked to artifacts in Safety Analysis Manager |
getCustomCallbackNames | Retrieve names of custom callbacks in Safety Analysis Manager documents |
getDocumentAttribute | Retrieve document attribute values in Safety Analysis Manager documents |
getDocumentAttributeProperties | Retrieve document attribute properties in Safety Analysis Manager document |
getEvent | Retrieve event with specified label from fault tree document |
getFailureModel | Retrieve failure model with specified label from fault tree document |
getFlags | Retrieve flags from Safety Analysis Manager documents |
getGate | Retrieve gate with specified label from fault tree document |
isCallbackEnabled | Determine whether custom callbacks are enabled |
refreshLinks | (Removed) Refresh link resolved status in Safety Analysis Manager documents |
renameCallback | Rename custom callbacks in Safety Analysis Manager spreadsheets |
renameDocumentAttribute | Rename document attributes in Safety Analysis Manager documents |
runAnalysis | Execute callback script on Safety Analysis Manager document |
save | Save Safety Analysis Manager document |
saveTemplate | Save Safety Analysis Manager document as a template |
setCallback | Assign code to Safety Analysis Manager document callback |
setDocumentAttribute | Set document attributes in Safety Analysis Manager documents |
Examples
Version History
Introduced in R2026b