ZRDSAVERAYS

Opens a ZRD ray database file, applies a filter, and saves the rays in the filtered subset that intersect a specified object number.

Syntax:

ZRDSAVERAYS infilename, outfilename, filterstring, object

Discussion:

This keyword requires the name of an input ZRD file, the name of the output source ray DAT file, the filter string to apply, and the object number. For information on the ZRD format, see "Ray database (ZRD) files. Source ray files are described in "Source File". For information on the filter string format see "The filter string" . The file names and filter string may each be defined by either a literal string or a single string variable. The file names must include the full path name. Although any extensions may be specified, the extension ZRD is recommended for the input file, and the extension DAT is recommended for the output file. The input and output file names must be distinct. If no filtering is desired, the filterstring argument should be replaced with two double quotes like this: "".

Examples:

 
ZRDSAVERAYS "C:\TEMP\TEST1.ZRD", "C:\TEMP\TEST1_H6.DAT", "", 6
ZRDSAVERAYS "C:\TEMP\TEST2.ZRD", "C:\TEMP\TEST2_H5.SDF", "", 5

Next: