Usage
opReplaceSpsBlocks(modelName, operation, searchDepth);
Inputs and Outputs
Inputs
modelName | Name of the model to modify. |
---|---|
operation | Optional argument that specified the type of operation to perform when replacing the blocks.
The default value is “ReplaceBlocks”. |
searchDepth | Optional integer that constrains the model search to a specific depth. |
Outputs
None
Example
To open a dialog that will help to switch between the real-time ARTEMiS blocks and the non-real-time SPS blocks:
- opReplaceSpsBlocks(modelName);
To automatically replace all SPS blocks by their real-time ARTEMiS equivalent:
- opReplaceSpsBlocks(modelName, 'ReplaceSpsBlocks');
To automatically replace all ARTEMiS blocks by their non real-time SPS equivalent:
- opReplaceSpsBlocks(modelName, 'ReplaceArtemisBlocks').