Forum

Please or Register to create posts and topics.

loadSimDefinition()

Hi,

I’m a master student at UGent and I’m using QBlade for my masters thesis.

I ran the sampleScript.py and imported the sample project like this:  #QBLIB.loadProject(b”./NREL_5MW_Sample.qpr”). This all worked fine and I got data.

When I export the simulation as a .sim file and load it as follows:QBLIB.loadSimDefinition(r”D:\Documenten\QBlade\QBladeCE_2.0.5.2\test.sim”)

the code returns the following error: “No Simulation in the database! Aborting…”
What am I doing wrong?

I was able to run the .sim file so this post can be deleted

Hi Hannes,

glad you solved your issue, I guess the issue was that the file location string was passed incorrectly?

QBLIB.loadSimDefinition(b”D:\Documenten\QBlade\QBladeCE_2.0.5.2\test.sim”)

instead of

QBLIB.loadSimDefinition(r”D:\Documenten\QBlade\QBladeCE_2.0.5.2\test.sim”) ?

BR,

David

Hannes W has reacted to this post.
Hannes W