WSMLink`
WSMLink`

WSMNames

WSMNames is being phased out in favor of SystemModels, which was introduced experimentally in Version 11.3.

WSMNames[]

returns a list of the models loaded in the Wolfram SystemModeler kernel.

WSMNames[patt]

returns the models matching the string pattern patt.

WSMNames[patt,"spec"]

only returns specialized classes of the kind "spec".

Details

  • WSMNames[patt] allows the same string patterns as StringMatchQ.
  • With WSMNames[patt,"spec"], only classes with "spec" are returned:
  • "class"general class
    "model"model class
    "block"input/output block
    "connector"connector class
    "function"function definition
    "package"collection of classes and constants
    "record"collection class
    "type"type specification
  • Returned names are represented using DotName.

Examples

open allclose all

Basic Examples  (4)

Load Wolfram SystemModeler Link:

In[1]:=
Click for copyable input

Get all models loaded in the SystemModeler kernel:

In[1]:=
Click for copyable input
Out[1]//Short=

Show all examples in the Modelica rotational mechanics library:

In[1]:=
Click for copyable input
Out[1]//Short=

Get only a specific type of class:

In[1]:=
Click for copyable input
Out[1]=

Scope  (1)

Applications  (1)

See Also

StringMatchQ  WSMModelData