Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Chad,</p> <p>For any questions related to the "built-in" commands in Dymola, please be aware that you can get some basic documentation by using the <code>document(...)</code> function (apparently, <code>help</code> was too pedestrian and <code>elucidate</code> was too pretentious?). This command can be invoked from the command line on the bottom of the "Simulation" tab in Dymola. It takes a string of the function name as the argument. So, to answer your question:</p> <pre><code>document("openModel"); function openModel "open a Modelica-file" input String path "File-path to open"; input Boolean mustRead := true "If false we can skip reading the file"; output Boolean result "true if successful"; "Opens a Modelica-file and pops up a window with the model in it" end openModel; document("openModelFile"); function openModelFile "open a Modelica-model from a file" input String model "Model to open"; input String path := "" "File-path to open (can be the empty string)"; input String version := "" "Version to open (can be the empty string)"; output Boolean result "true if successful"; "Opens a Modelica-file and pops up a window with the given model in it" end openModelFile; </code></pre> <p>Sadly, I don't think the documentation quite captures the difference here. In fact, I would argue the names are really backward if you think about it. <code>openModel</code> takes a <strong>file</strong> as an argument and opens the definition contained in that file (typically a <code>package</code> but not necessarily). On the other hand, <code>openModelFile</code> takes a <strong>model</strong> name as an argument and opens that model in the model browser (searching the <a href="https://stackoverflow.com/questions/15441340/how-can-i-add-a-custom-package-to-the-startup-path-in-dymola-modelica">MODELICAPATH</a>, if necessary, to find and open the model).</p> <p>I hope that helps.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload