Main Content


Add data dictionary reference to Architectural Data section of Simulink data dictionary

Since R2023b



    addReference(archDataObj,refDict) adds a referenced dictionary, specified by refDict, to the Architectural Data section of the specified data dictionary, archDataObj. Dictionary referencing is supported only for data dictionaries that do not have applied platform mappings.


    collapse all

    Add referenced dictionaries ReferenceInterfaces1.sldd and ReferencesInterfaces2.sldd to the data dictionary MyInterfaces.sldd.For an example that shows more of the workflow for related functions, see Create Architectural Data Object and Use It to Configure Architectural Data.

    archDataObj1 ="MyInterfaces.sldd");
    archDataObj2 ="ReferenceInterfaces1.sldd");
    refDicts = getReferences(archDataObj1)
    refDicts =
      2×1 cell array

    Input Arguments

    collapse all

    Architectural Data object specified as a Simulink.dictionary.ArchitecturalData object.

    Referenced data dictionary, specified as a character vector, a string scalar, or a Simulink.dictionary.ArchitecturalData object.

    Example: "ReferenceDictionary.sldd"

    Version History

    Introduced in R2023b