Main Content

importFromBaseWorkspace

Import Simulink object definitions

Since R2022b

Description

example

importFromBaseWorkspace(dictObj) copies Simulink.Bus, Simulink.ValueType, and Simulink.AliasType objects from base workspace to the interface dictionary identified by dictObj. The Simulink.Bus objects are imported as data interfaces. For those objects that need to be used as a structure DataType, these objects can be cut and pasted into the interface dictionary after the import operation.

Examples

collapse all

To import Simulink.Bus, Simulink.ValueType, and Simulink.AliasType objects from base workspace to the interface dictionary, use the importFromBaseWorkspace function. For an example that shows more of the workflow for related functions, see Create and Configure Interface Dictionary.

importFromBaseWorkspace(dictAPI);

Input Arguments

collapse all

Interface dictionary, specified as a Simulink.interface.Dictionary object. Before you use this function, create or open dictObj by using Simulink.interface.dictionary.create or Simulink.interface.dictionary.open.

Version History

Introduced in R2022b

expand all