coder.dictionary.move
Migrate code generation definitions between models and data dictionaries
Description
coder.dictionary.move(
moves code generation definitions, such as storage classes, from the Embedded Coder
Dictionary in sourceName
,destinationName
)sourceName
to the Embedded Coder Dictionary in
destinationName
. The definitions are removed from
sourceName
. The source and destination dictionaries must use
the same code interface configuration type. To copy code definitions from one
Embedded Coder Dictionary to another, use coder.dictionary.copy
.
If a code generation definition in sourceName
has the same name
as a definition in destinationName
, move
moves the source entry into the destination, and then renames the entry in the
destination.
Use this function to:
Move code generation definitions from a model to a Simulink® data dictionary. For more information, see Share Code Interface Configuration Between Models.
In a hierarchy of referenced Simulink data dictionaries, move the Embedded Coder Dictionary from one data dictionary to another. In a hierarchy of referenced dictionaries, only one dictionary can store an Embedded Coder Dictionary.
For general information about Embedded Coder Dictionaries and code generation definitions, see Define Service Interfaces, Storage Classes, Memory Sections, and Function Templates for Software Architecture.