Main Content

removeInterface

Remove named interface from interface dictionary

Description

removeInterface(dictionary,name) removes the interface specified by name from the interface dictionary dictionary.

example

Examples

collapse all

Create a new model. Add a data interface newInterface to the interface dictionary of the model.

arch = systemcomposer.createModel("archModel");
systemcomposer.openModel("archModel");
addInterface(arch.InterfaceDictionary,"newInterface");

Open the model, then open the Interface Editor. Confirm that an interface newInterface exists.

open(arch)

Remove the interface.

removeInterface(arch.InterfaceDictionary,"newInterface");

View the Interface Editor. Confirm that newInterface is removed.

Input Arguments

collapse all

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

Name of interface to be removed, specified as a character vector or string.

Example: "newInterface"

Data Types: char | string

More About

collapse all

Version History

Introduced in R2019a

See Also

Functions

Objects

Blocks

Tools