Main Content

isDirty

Check whether there are unsaved changes in Simulink interface dictionary

Since R2022b

In R2023b the Architectural Data section of data dictionaries was introduced. When managing interfaces, data types, constants, and software address methods consider using the Simulink.dictionary.ArchitecturalData programmatic interfaces instead. For more information, see Programmatically Manage AUTOSAR Architectural Data.

Description

hasUnsavedChanges = isDirty(dictObj) returns a 1 (true) if the dictionary has unsaved changes.

example

Examples

collapse all

To determine whether the dictionary has unsaved changes, use the isDirty function. For an example that shows more of the workflow for related functions, see Create and Configure Interface Dictionary.

isDirty(dictAPI)
ans =

  logical

   1

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

collapse all

R2023b: Simulink.interface.Dictionary object replaced by Simulink.dictionary.ArchitecturalData object

Starting in R2023b, use the Simulink.dictionary.ArchitecturalData object to programmatically manage architectural data instead of the Simulink.interface.Dictionary object.