ScaleTool API does not assign correct model file path
Posted: Sun Sep 30, 2018 10:54 am
Hi Guys,
I could not find a solution in the forum, so I would be happy if someone can held me:
I am trying to specify the path of the model I want to use for the ScaleTool via MATLAB.
Important: *Note that the Model file is two hierarchical levels above the Scaletool setup file!*
What I get is following:
If I set the modelfile, the path is incorrect since it adds the path I assigned to the path where the setupfile is located.
If I would store the model file in the setup file folder, it works, but this is what I'm trying to avoid.
I also tries to type in the setup file "Unassigned", but this also does not work.
I hope you understand my problem and would be happy for any help or idea.
Yours, Sven
I could not find a solution in the forum, so I would be happy if someone can held me:
I am trying to specify the path of the model I want to use for the ScaleTool via MATLAB.
Code: Select all
scaleTool = ScaleTool('C:\...\OSMATLAB_Batch_Walk\Subject01\ScaleSetup'\svegor_Setup_Scale.xml');
scaleTool.getGenericModelMaker().setModelFileName('C:\...\OSMATLAB_Batch_Walk\modelfile.osim');
scaleTool.getGenericModelMaker().setMarkerSetFileName('C:\...\OSMATLAB_Batch_Walk\Subject01\ScaleSetup\svegor_MarkerSet.xml');
scaleTool.run();
What I get is following:
Code: Select all
Step 1: Loading generic model
Exception:
Object: Cannot not open file
C:\...\OSMATLAB_Batch_Walk\Subject01\ScaleSetup\C:\...\MATLAB\OSMATLAB_Batch_Walk\modelfile.osim.
It may not exist or you do not have permission to read it.
Thrown at object.cpp:104 in Object().
line= 2632
If I would store the model file in the setup file folder, it works, but this is what I'm trying to avoid.
I also tries to type in the setup file "Unassigned", but this also does not work.
I hope you understand my problem and would be happy for any help or idea.
Yours, Sven