Scripting issue

Tom BallantineTom Ballantine asked 3 years ago

Hi,
I am trying to use the scripting feature in Flow5 – I’m using the plane_script.xml file from this site as the starting point.
The script runs, however no analysis takes place because the plane & analysis .xml files are not loaded. The log file returns the following errors:
Adding planes from the .xml files
…failed to load the file C:/Users/Tom/Desktop/Flow 5 Scripting/xml/planes//ENATA with mast (H105).xml
The file is not an xml plane v.1.0 definition file.
error on line 3 column 23
This is line 3 from the above plane .xml file, which would indicate that the .xml file is a v.1.0 file.
<explane version=”1.0″>
 
Adding the plane analyses from the xml files
…error reading the file: C:/Users/Tom/Desktop/Flow 5 Scripting/xml/analyses_3d/T2-VLM2-100_0kg-x0_0m-proj_area.xml
The file is not an xfl plane polar version 1.0 file.
error on line 3 column 27
 
Similarly, this is line 3 from the above analysis .xml file.
<Plane_Polar version=”1.0″>
 
Any ideas what I may be doing wrong?
Thanks in advance!
 

André Deperroistechwinder Staff replied 3 years ago

Hello Tom,
There may be a missing or incomplete tag. The first three lines of the script file should look like this

<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE XFL_SCRIPT>
<xflscript version=”1.0″>

Can you also try to export a template plane and a template analysis to xml files and paste their first 3 lines in your files?
If this does not work, please paste in this thread the first lines of each file.
André

Tom BallantineTom Ballantine replied 3 years ago

Thanks Andre – I now realised where I was going wrong. I had exported the plane and analyses to .xml files from XFLR5 instead of from Flow5 so the format was wrong. I have exported the plane and analyses to .xml from Flow5 now and the script now runs.

I am still having one issue – the analyses are only being run at Alpha = 0.
I have specified an Alpha range of -10, 10, 0.5 in the script file.
What could be causing this?

Thanks again!

André Deperroistechwinder Staff replied 3 years ago

Did you specify the range using the T12_range tag?