Ansys ADPL Export

I’m trying to use the Ansys ADPL export function but it seems like this wasn’t as easy as I thought. I am trying to do the same steps as in the tutorial but with my own model. But as these are just slightly different steps it should work as well.

This is the code:

01   [b]AnyBodyStudy[/b] Study = {
02     [b]AnyFolder[/b] &Model = .Model;
03     
04     tEnd = 10.0;
05     Gravity = {0.0, -9.81, 0.0};
06     nStep = 5;
07     
08     [b]AnyMechOutputFileForceExport[/b] FE_out = 
09     {
10       FileName = "files_in\femurload.xml";      
11       UseRefFrameOnOff = On;
12       AnyRefFrame &ref1 = Main.HumanModel.BodyModel.Right.
13       Leg.Seg.Thigh.HipJoint;
14       AllSegmentsInStudyOnOff = Off;
15       XMLformatOnOff = On;
16       AnySeg &femur = Main.HumanModel.BodyModel.Right.Leg.
17       Seg.Thigh;
18     };    
19   }; // End of study
20   
21   [b]AnyOperationShellExec[/b] ConvertToAPDL={
22     Show=On;
23     FileName = "AnyFE2APDL.exe";
24     Arguments = "-i ...\files_in\femurload.xml -o ...
25     \files_out -t ...APDLTemplate.txt";
26     WorkDir="E:\AnyBody\AMMR.v1.5-
27     MyDemo\Application\MyModels\StandingModel_ANSYS_Hip\AnyFE
28     2APDL\output\AnyFE2APDL\";
29   };


Do you have any suggestions what I am doing wrong?

What’s happening? Error message, or nothing?

did you think about the license?
http://wiki.anyscript.org/index.php/All_about_Finite_Element_interface

Oh sorry, I forgot to mention:

  • The export of the xml file worked only the conversion doesn’t.
  • The license is working, I got an error message when it was not renamed to “license” before.
  • I get the following message when executing the ADPL Shell via AnyBody: “0) Operation Sequence: (Operation: Main.ConvertToAPDL):”
    • Apart from the command window popping up doing nothing, there is nothing else happening.

I looked into the RunMe.bat and changed the parameters as follow:

    AnyOperationShellExec ConvertToAPDL={
      Show=On;
      FileName = "AnyFE2APDL.exe";
      Arguments = "--input=..\..\..\files_in\femurload.xml --output=..\..\..\files_out --template=APDLTemplate.txt ";
      WorkDir="\AnyFE2APDL\output\AnyFE2APDL\";
    };
  

This actually works!