DocumentChanged during Sync with Central has no changed info?

DocumentChanged during Sync with Central has no changed info?

Anonymous
Not applicable
379 Views
2 Replies
Message 1 of 3

DocumentChanged during Sync with Central has no changed info?

Anonymous
Not applicable

I'm trying to write some functionaity to react to changes resulting from a Reload Latest (RL) or Sync with Central (SWC).  The local document is managed by an IUpdater and, as we know, updaters do not get called in response to SWC or RL

 

During SWC after the reload latest step, we do get a DocumentChanged Event which fires before the central file is overwritten.  I'd like to use this to store added/modified/deleted info so that I can groom the database after incorporating changes from a central file.  What I'm experiencing is that this document changed event does not seem to contain any information about what was added/modified/deleted.  Obviously, if we do not get this information, I'll need to make some catalogging of the current state of the model in SynchronizingWithCentral() and then diff it in SynchronizedWithCentral() to deduce the changes.

 

Can anyone who has investigated such things, or someone with perview to the internals, confirm that there is currently no provided information on add/mod/del in DocumentChanged during a SWC or after RL commands?  and, if not, should there be?

 

(strangely enough as I write this, I'm starting to like the catalog-and-diff approach anyway; bit intensive but clean)

 

Cheers,

-Ken

 

 

 

 

 

0 Likes
380 Views
2 Replies
Replies (2)
Message 2 of 3

Aaron.Lu
Autodesk
Autodesk
Looks like there is no workaround yet, I'm consulting development team, will get back to you ASAP


Aaron Lu
Developer Technical Services
Autodesk Developer Network
Message 3 of 3

Anonymous
Not applicable
Hi Aaron,
Thanks for looking into this. I've implemented a workaround to perform the diff myself on the pieces of information that I'm most interested in. I've also had to override the SWC command to implement it but seems to be working for now.

That said, it would certainly be nice if DocChanged did have diff info after Reload Latest (especially if we eventually get events for RL)

Thanks,
-Ken
0 Likes