Main Content

Simulink.LibraryDictionary.refresh

Update library dictionary dependencies

Since R2021a

Description

Simulink.LibraryDictionary.refresh performs a library dependency analysis on a library hierarchy with attached data dictionaries from the current folder. When you first attach a dictionary to a library and save that library, Simulink® opens and performs this analysis on each library in the specified folder as well as in the folder of that library (if different than the current folder). Simulink stores the analysis in the user preference folder. Subsequent changes to a library in the hierarchy result in analysis of only relevant library changes.

Because performing this library dependency analysis can be an expensive operation, call the Simulink.LibraryDictionary.refresh function only when you have made changes to you library hierarchy and want to ensure that your library dictionary dependencies are current.

example

Simulink.LibraryDictionary.refresh(libraryDir) performs a library dependency analysis on a library hierarchy with attached data dictionaries from the specified library folder.

example

Simulink.LibraryDictionary.refresh(model) performs a library dependency analysis on a library hierarchy with attached data dictionaries for the specified model.

example

Examples

collapse all

Perform a library dependency analysis on a library hierarchy with attached data dictionaries from the current folder.

Simulink.LibraryDictionary.refresh

Perform a library dependency analysis on a library hierarchy with attached data dictionaries from a specified library folder.

Simulink.LibraryDictionary.refresh('C:/Work/myLibraryDir/')

Perform a library dependency analysis on a library hierarchy with attached data dictionaries for a specified model.

Simulink.LibraryDictionary.refresh('myModel.slx')

Input Arguments

collapse all

Library folder to use for dependency analysis, specified as a character vector.

Example: 'myLibraryDir'

Data Types: char

Model to use for dependency analysis, specified as a character vector.

Example: 'myModel'

Data Types: char

Version History

Introduced in R2021a