You can manage NC output files in any post type, but it is required for one-pass posting.
Use these steps to manage files in XBUILD:
Two sets of reserved words are used within the post formats to direct the output to the intermediate files:
# can range from 1-20, or can be replaced by the name of the file specified in the Manage Files dialog, similar to post variables.
You should use <SET-F#> in a conventional Custom Format called SetChannel. You should call this format before anything else in Program Start, Tool Change, Segment Start, and Program End. A typical SetChannel format for a two-channel post looks similar to this:
// This format contains logic for determining which channel we are //writing to, and sets the output stream and the channel variable //accordingly.
<IF>[<TURRET-NUM> == 1]<THEN>
<SET-F1>
[:channel = 1]
<ELSE>
<SET-F2>
[:channel = 2]
<ENDIF>
Note that a variable is used to keep track of what channel is currently active.