WSMLink`
WSMLink`
WSMRenameModel
WSMRenameModel is being phased out in favor of SystemModel, which was introduced experimentally in Version 11.3.
WSMRenameModel["source","dest"]
renames the model source to dest.
Details and Options
- Both source and dest refer to the fully qualified Modelica names.
- Names can be given as strings or as DotName.
- WSMRenameModel returns WSMModelData["dest"] if it succeeds, and $Failed if it fails.
- The shortest unique model name source can be used where WSMNames["*.source"] gives a unique match.
Examples
open allclose allBasic Examples (3)
Options (1)
OverwriteTarget (1)
By default, renaming to an existing model fails:
Use OverwriteTarget to overwrite the existing target model: