Main Content

deleteUnmappedComponents

Delete unmapped AUTOSAR components from model

Description

deleteUnmappedComponents(arProps) deletes atomic software components that are not mapped to the model. Use this to remove unused imported components that you do not want preserved in the model and exported in ARXML code. This function does not remove calibration components.

example

Examples

collapse all

After importing AUTOSAR information from ARXML files and configuring a model for AUTOSAR, remove atomic software components that were imported but are not mapped to the model. This prevents unmapped components from being exported back to ARXML.

arProps = autosar.api.getAUTOSARProperties('my_autosar_model');
deleteUnmappedComponents(arProps);

Input Arguments

collapse all

AUTOSAR properties information for a model, previously returned by arProps = autosar.api.getAUTOSARProperties(model). model is a handle, character vector, or string scalar representing the model name.

Example: arProps

Version History

Introduced in R2014b