addPackageableElement(arProps,category,package,name)
adds element name of the specified category to the
specified AUTOSAR package in a model configured for AUTOSAR.
arProps — AUTOSAR properties information for a model handle
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
category — Element category character vector | string scalar
Category of element to add. Valid category values are
'ClientServerInterface', 'DataTypeMappingSet',
'ModeDeclarationGroup', 'ModeSwitchInterface',
'Package', 'ParameterComponent',
'ParameterInterface', 'SenderReceiverInterface',
'SwAddrMethod', and 'SystemConst'.
Example: 'SenderReceiverInterface'
package — Package path character vector | string scalar
Fully-qualified path to the element package.
Example: '/pkg/if'
name — Element name character vector | string scalar
Name of the element to add.
Example: 'Interface3'
property,value — Element property and value name (character vector or string scalar), value
Property/value pairs for setting values of element properties. Table Properties of AUTOSAR Elements lists properties that are associated with
AUTOSAR elements.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.