主要内容

treatAsArchitecturalData

Move design data entry from Design Data section to Architectural Data section

Since R2026a

    Description

    treatAsArchitecturalData(archData,designDataEntryName) moves the data entry specified by designDataEntryName to the Architectural Data section, archData, from the Design Data section of the same data dictionary.

    example

    Examples

    collapse all

    In data dictionary sldemo_fuelsys_dd.sldd, move Simulink.Bus object EngSensors, from the Design Data section to the Architectural Data section. Moving this entry creates a Simulink.dictionary.archdata.DataInterface object that has the same elements, data types, and specifications as the original design data entry.

     openExample("sldemo_fuelsys_dd.sldd");
     archData = Simulink.dictionary.archdata.open("sldemo_fuelsys_dd.sldd");
     treatAsArchitecturalData(archData,"EngSensors");
     EngSensorsDataInterface = archData.getInterface("EngSensors")
    EngSensorsDataInterface = 
    
      DataInterface with properties:
    
               Name: 'EngSensors'
        Description: ''
           Elements: [1×4 Simulink.dictionary.archdata.DataElement]
              Owner: [1×1 Simulink.dictionary.ArchitecturalData]

    Input Arguments

    collapse all

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

    Name of an entry in the Design Data section of the data dictionary that also owns archData, specified as a character vector or string scalar.

    Version History

    Introduced in R2026a