HyperWorks Tools

::hwat::utils:: ReadTargetLocationCSVFile

::hwat::utils:: ReadTargetLocationCSVFile

Previous topic Next topic No expanding text in this topic  

::hwat::utils:: ReadTargetLocationCSVFile

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME

::hwat::utils::ReadTargetLocationCSVFile - Returns the data in a 201 Head Target Location CSV file.

 

SYNTAX

::hwat::utils:: ReadTargetLocationCSVFile filenamewithpath

 

ARGUMENTS

filenamewithpath

The name of the CSV file.

 

RETURNS

A Tcl list of the form Target location, X coordinate, Y coordinate, Z coordinate, Minimum horizontal angle, horizontal angle, Maximum horizontal angle, Minimum vertical angle, vertical angle, Maximum vertical angle if successful, {} if unsuccessful.

 

EXAMPLE

::hwat::utils:: ReadTargetLocationCSVFile "D:/hwatfiles/target.csv"

 

Comments

Format Requirements are:

1.Each value should be separated by comma ",".
2.There should be at least 10 values in each line.  If fewer values are present, that line is invalid.  If more than 10 values are present in a line, the first 10 values are considered and remaining are discarded.
3.If any line data is invalid, this function skips that line and proceeds with the parsing of the next line.
4.There should be at least 1 valid data line.  Otherwise, function returns {}.
5.Skips all lines, started with #. These lines are comment lines.

 

 

See also

Utils Functions