Main Content

moveInterface

Move interface to another data dictionary

Since R2023b

Description

moveInterface(interface,dictionary) moves the interface interface to the data dictionary dictionary.

example

Examples

collapse all

Create a new model and get its architecture.

model = systemcomposer.createModel("archModel");
systemcomposer.openModel("archModel");
arch = model.Architecture;

Create a new data dictionary, Interfaces.sldd, and add a new data interface, GPSInterface.

dictionary = systemcomposer.createDictionary("Interfaces.sldd");
interface = dictionary.addInterface("GPSInterface");

Create a second data dictionary, InterfacesNew.sldd, and add a new data interface, SSDInterface. Link the data dictionary to your model.

newDict = systemcomposer.createDictionary("InterfacesNew.sldd");
newInterface = newDict.addInterface("SSDInterface");
linkDictionary(model,"InterfacesNew.sldd");

Move the GPSInterface data interface to the second data dictionary InterfacesNew.sldd.

interface.moveInterface(newDict);

View the Interface Editor. Confirm that the GPSInterface data interface is now part of the InterfacesNew.sldd data dictionary.

newDict.Interfaces.Name

Input Arguments

collapse all

Data dictionary, specified as a systemcomposer.interface.Dictionary object. For information on how to create a data dictionary, see createDictionary.

More About

collapse all

Version History

Introduced in R2023b

See Also

Functions

Objects

Blocks

Tools