|
Reading from file |
Scroll |
Reading data from a file is possible when working with objects of the following types:
•surface by point grid (see section Setting points for surface by a grid of points),
•surface by point layer (see section Setting points for surface by point layer),
•spline and broken line (see section Saving point parameters to a file and reading from file),
•group of points from file (see section Group of points from file,
•imported surface (see section Importing a surface),
•arrays (see sections Reading coordinates from a file, Practices of handling the table of modifiable variables).
For correct reading the data file must meet the following criteria.
•The parameters of each object (point or array instance) are located on a separate line.
•No empty values of parameters.
•For a point, the maximum number of parameters per line is four. The list of parameters and their order depending on the type of object can be found in table Parameters of points required for proper data reading from file.
•For an instance, the maximum number of parameters per line is unlimited.
•Angle values are written in decimal notation.
•A file line starting with a "#" character is considered a comment.
•In the MS Excel file, object parameters should be located on the first sheet. If this sheet contains other data or if this sheet is empty, the message "Data read error" is displayed. The remaining sheets, if any exist in the MS Excel file, are ignored.
•In a text file a space or several spaces is used as a delimiter of parameter values, and a period is used as a decimal separator.
Additional requirements for a data file for a surface by point grid:
•rows of points are described by groups of lines; the number of rows in groups is the same,
•A group separator is an empty string or a string containing any integer (usually the row number), or one of the following characters: plus (+), minus (-), asterisk (*); several consecutive group separators are considered as one separator.
|
A data file for the surface by point grid may contain one group or non-integral quantity of groups. In this case you will need to configure or build the lacking points for the surface construction. |
Parameters of points required for proper data reading from file
Object Type |
Parameters of the object points stored in the file |
Sequence of parameters in the line |
|
Surface by point grid, surface by point layer, imported surface, spline by points |
Rectangular coordinates |
X Y Z |
|
Spline by Poles |
Rectangular coordinates and weights |
X Y Z Weight |
|
Broken Line |
Rectangular coordinates and fillet radii at vertices |
X Y Z Radius |
|
Group of points from file, array by table |
Rectangular, cylindrical or spherical coordinates. The method for interpretation of the data recorded in the file is selected by the user when parameterizing the operation. |
X Y Z, R A Z or R A B |