joniles / mpxj

Primary repository for MPXJ library
http://www.mpxj.org/
GNU Lesser General Public License v2.1
240 stars 101 forks source link

Missing TimePhased conversion to XML in C# #667

Closed juanlp closed 4 months ago

juanlp commented 4 months ago

Can anyone please point me to the right syntax for writing to XML with TimePhasedData in C#

joniles commented 4 months ago

@juanlp thanks for the request, I will make some notes for you in the next day or so to explain how timephased data can be used now, and the changes I'm planning to make shortly in this area.

joniles commented 4 months ago

@juanlp just to let you know I haven't forgotten this! I'm just writing and testing some sample code for you, should be ready by the end of the week.

joniles commented 4 months ago

Hi @juanlp, I've written some sample code for you illustrating various scenarios using timephased actual and remaining work. Unfortunately the sample is current just Java, I haven't had the time to create a C# version, but hopefully you'll find it simple enough to translate. I'll let you know if I have the opportunity to update this to C# myself.

You'll find code the code here

Here's what the output looks like when opened in MS Project:

image

Here's the timephased work and actual work breakdown, as illustrated in MS Project:

image

Timephased data is an area I'm actively working on, so some of the APIs shown here may change.