Main Content

moveToDictionary

Move architectural data of Simulink data dictionary to another data dictionary

Since R2023b

    Description

    moveToDictionary(archDataObj,dataName) moves the architectural data object specified by elementName to archDataObj, the Architectural Data section of the data dictionary. This allows you to move architectural data between dictionaries while maintaining port associations of the moved interfaces, as well as copying over custom profiles and stereotypes.

    example

    Examples

    collapse all

    To move a data interface to the Architectural Data section of a data dictionary, use the moveToDictionary function. For more information regarding workflows for related functions, see Create Architectural Data Object and Use It to Configure Architectural Data.

    archDataObj = Simulink.dictionary.archdata.create("MyInterfaces.sldd");
    interfaceObj = addDataInterface(archDataObj,"myDataInterface");
    
    archDataObj2 = Simulink.dictionary.archdata.create("OtherInterfaces.sldd");
    interfaceObj.moveToDictionary(archDataObj2);

    Input Arguments

    collapse all

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

    Name of interface, data type, constant, specified as a character vector or string scalar.

    Example: "dataInterface"

    Data Types: char | string

    Version History

    Introduced in R2023b