AnsweredAssumed Answered

EPDM API - Adding/Removing Files in Transition

Question asked by Jim Sculley on Feb 19, 2016
Latest reply on Feb 19, 2016 by Barry Cavanaugh

Our vault is set up such that referenced files are not include automatically during state changes.  For most of our work, this is preferred and works well.  I have a situation now where it would be better if a particular referenced file was included during state changes.  Say I have a part file A.sldprt and it has a pasted reference B.txt.  They are in separate workflows, but have the same transition names.  When I transition A to a new state, B is included in the list of referenced files and can be transitioned, but it is not automatically included (the box isn't checked in the state change dialog).  Users will often forget to check the check box and the referenced file will be left behind.


Does anyone know of a programmatic way to accomplish this? I think that the only way to do it is to hook into the PostState event and send the referenced file to the correct state via IEdmBatchChangeState, but I was hoping for something less kludgy.