Getting some meaningful error message in these cases would help a lot :)

                        Francesco


Il 02/10/2014 11:50, Alexey Lebedev ha scritto:
Thank you, Martin! Now it works. I didn't expect that the difference in slashes 
would have this much importance :)

  Regards,
   Alexey

-----Ursprungligt meddelande-----
Från: owner-openmodelicainter...@ida.liu.se 
[mailto:owner-openmodelicainter...@ida.liu.se] För Martin Sjölund
Skickat: den 2 oktober 2014 11:36
Till: openmodelicainterest@ida.liu.se
Ämne: Re: How to load a package with subpackages in subdirectories in OMShell?

Use front-slashes (/) and it should load the libraries as expected.
Or use loadModel() with the libraries already on your path.

--
Martin Sjölund

On 2014-10-02 11:17, Alexey Lebedev wrote:
    Hello,

When I use loadFile command in OMShell to load a package which contains 
subpackages in subdirectories, it only loads the direct contents of package.mo 
file (as far as I can tell). For example:


loadFile("D:\\Modelica\\modelica-annex60-master\\Annex60\\package.mo")

true



list(Annex60.Controls)

""



list(Annex60.Fluid.FixedResistances.FixedResistanceDpM)

""


loadFile("D:\\Modelica\\OpenModelica1.9.0\\lib\\omlibrary\\Modelica 
3.2.1\\package.mo")

true



list(Modelica.Math)

""

Is it possible to make it load all the subpackages as well? Am I doing 
something wrong?

Regards,
    Alexey Lebedev




--
Francesco Casella - Ph.D.
Dipartimento di Elettronica, Informazione e Bioingegneria
Politecnico di Milano
Via Ponzio 34/5
I-20133 MILANO - ITALY

Tel:    +39-02-2399-3465 (Leonardo)
        +39-02-2399-7749 (Polo di Cremona)
Fax:    +39-02-2399-3412
e-mail: francesco.case...@polimi.it
web:    http://home.dei.polimi.it/casella
Skype:  callto://francesco.casella

Reply via email to