EPDM IEdmHistory::GetHistory

All,

I would like to write an add-in to rollback a file to the last known Transition.  Please see attached file.  I think if I can find the history of the file, I am on the right track.  The help documents say that using GetHistory returns an array of history items. The array is sorted with the most recent records at the beginning and the oldest ones at the end.  That would be prefect, cause once I found the first history line that stated, Transition from MA to ECO, I would rollback to that version.

Has anyone wrote some code that will find the history of a file, I would like not to start from scratch?

Thanks for any help in advance.

Rodney

SolidworksApi macros