Forum
loadSimDefinition()
Quote from Hannes W on 14. April 2023, 20:04Hi,
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?
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”)

Quote from David on 16. April 2023, 12:42Hi 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
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
