Documentation Home Page ◇ ARTEMiS Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.
OpReplaceSpsBlocks
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').
OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323