mfisch Hi all I wonder if it is possible to "get" the xdd file name within a topas input file in order to write it as the first item on a line in an output file (to be used with tc.exe): out "Testoutput.TXT" append Out(xdd_name, " \n %11.1f") Out(parameter1, " %11.5f", " %11.5f") Out(parameter2, " %11.5f", " %11.5f") So, the appended line for refinenemt of test1.raw would look like: test1.raw 123.00000 0.12345 321.00000 0.54321 then the next line for test2.raw: test2.raw 456.00000 0.12345 654.00000 0.54321 Thanks, Martin
johnsoevans Try: macro filename (xray.xye) xdd filename Out_String(filename) Or something similar. There's a bit more in the wiki at: http://topas.dur.ac.uk/topaswiki/doku.php?id=automating_multiple_refinements John
alancoelho The other way of outputting the file name is as follows: Out(Get(xdd_path_name), "%s") Cheers Alan