Asta Lag sign incorrect
Multi platform library to read and write schedule data
Brought to you by:
joniles
Hi again Jon,
Running some more Asta Powerprojects into MSPDI XML, and we've come across another anomaly.
A fairly basic project with links, lags, and constraints, when run through MPXJ into XML, does not show correctly in Microsoft Project due to the lags, apparently, being reversed, i.e. -2400 minutes becomes 2400 minutes, and vice versa.
If XML is saved from Powerproject, and then run through MPXJ into XML, then all appears well.
For some reason, Powerproject copes with both!
Anyway, attached please find (... deep breath ...):
Regards,
Dave.
Sorry, forgot the patch!
I had a closer look at this. I think the issue is that I'd taken a naive approach to handling the two lag values present in Asta, rather than actually analysing how Asta maps those values itself when you generate an MSPDI file. I've updated the code so it should behave in the same way that Asta does. This diff also includes the constraint mapping change.
https://github.com/joniles/mpxj/compare/asta_changes
can you give this a try and let me know if it works for you?
Last edit: Jon Iles 2018-11-06
Cheers, Jon, that patch gives me the output I'm expecting.
Code now in Git fixes this issue.