Export String to Moss Genio files
Function Name:
This function allows you to convert Surpac string files into MOSS files. The MOSS files created will have the strings stored as either 3D or 4D strings depending on whether the description field data is to be converted.
To run this function: Choose File > Export > String to Moss Genio files, or...
Define the strings to be converted
Location
Enter the Location name of the string file containing the data which is to be converted into a MOSS Genio file. The Location name entered will be written to the MOSS file on the first line as ``GENIO <location>``.
ID Number
Enter the ID Number of the string file containing the data which is to be converted into a MOSS Genio file. If you have multiple string files, then you should first combine them using the GRAPHICS module.
String Range
Enter the range of strings from the string file that you want to convert to MOSS strings. If you leave this field blank then all of the strings will be converted. The string number will be used as the MOSS string identifier but will have leading zeros added to make it 4 characters in length e.g. string `1' will become MOSS string `0001'. If you have string numbers greater than `9999' i.e. greater than 4 characters, you should renumber them in Surpac. If you do not renumber them, then they will be given a MOSS string identifier starting at `S001' for the first string over `9999' and incrementing by 1 for each other string greater than `9999'.
MOSS does not have string segments, but records discontinuities in a string by indicating the start of the discontinuity with a negative X value and the end of the discontinuity with a negative Y value. In other words the last point in a segment will have a negative X value and the first point of the next segment will have a negative Y value. This is how Surpac string segments are translated into MOSS.
Descriptions
If you want to convert description field data, then you must enter `Y' here and the data stored in the D1 field of the string file will be stored as the fourth dimension in the MOSS string. If you enter `N' here then the description field data will not be converted and 3D MOSS strings will be created.
Define the MOSS file to be created
Filename
Enter the complete file name of the MOSS Genio file to be created. You must enter the extension as well, usually '.gen'.
String terminator
Enter the number which is to be used to signify the end of the string in the MOSS file. Typically the default value of 0.0 is used. However if the Surpac strings have X,Y co-ordinates of (0.0, 0.0) then you must enter another number here such as 9999.9 or -1.0.
Result
A MOSS file is created. The Surpac string numbers will be used as the MOSS string identifiers but will have leading zeros added to make them all 4 characters in length e.g. string `1' will become MOSS string `0001'. If you have string numbers greater than `9999' i.e. greater than 4 characters, you should renumber them in Surpac. If you do not renumber them, then they will be given a MOSS string identifier starting at `S001' for the first string over `9999' and incrementing by 1 for each other string greater than `9999'.