Main Content

getReferences

Get cell array of names of interface dictionaries that are referenced by another interface dictionary

Since R2023a

Description

example

refDictNames = getReferences(dictObj) returns a cell array of the names of interface dictionaries that are referenced by the interface dictionary dictObj.

Examples

collapse all

Get names of interface dictionaries referenced from the interface dictionary MyInterfaces.sldd.

dictAPI = Simulink.interface.dictionary.open('MyInterfaces.sldd');
refDicts = getReferences(dictAPI)
refDicts =

  2×1 cell array

    {'C:\work\ReferenceInterfaces1.sldd'}
    {'C:\work\ReferenceInterfaces2.sldd'}

Input Arguments

collapse all

Interface dictionary, specified as a Simulink.interface.Dictionary object. Before you use this function, Before you use this function, create or open dictObj by using Simulink.interface.dictionary.create or Simulink.interface.dictionary.open.

Output Arguments

collapse all

Names of referenced interface dictionaries represented using full paths, specified as a cell array of character vectors or a string array.

Example: {'C:\work\ReferenceInterfaces1.sldd'}

Version History

Introduced in R2023a

expand all