Jump to content

Creating new imposed output files based on field data


Recommended Posts

We recently added an inline cutter to our iX3200 and want to split the output based on mailing trays. I know that this is possible under normal output but can we still accomplish this using imposition as well?


I've had success creating new stacks every time the tray number changes but I can't seem to get it to work to create a new output file.

Here's my code to create the stacks.

   var SelectedField = "SCKNDPCKNM"; 
   var trayNum = (Left(Field("SCKNDPCKNM"), 3))

   if (FieldChanged(Left(Field("SCKNDPCKNM"), 3)))

Is there a way to generate a new file every time there is a new stack?

Link to comment
Share on other sites

Sure, instead of calling FusionPro.Composition.StartNewStack(), call FusionPro.Composition.OpenNewOutputFile(), optionally with a file name. You may also need to set FusionPro.Composition.chunksBreakStacks = true in OnJobStart so that the new output file (chunk) is created right away, breaking the current stack, rather than being deferred until the next stack break.
Link to comment
Share on other sites

  • 2 weeks later...

Thanks Dan,


I had tried that before but couldn't get it to work. I realized that I had the code wrong.

I was trying to split my field SCKNDPCKNM so that it was only seeing the Tray # as the field contains both the Tray and Pack #'s.

Once I split those in my data file it worked great.


if (FieldChanged("TRAYNUM"))

Edited by Dmiller35
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...