joniles / mpxj

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

XER file, P6 Location Attribute #479

Closed michelespinella closed 1 year ago

michelespinella commented 1 year ago

Good day all, we are using mpxj to import xer file from primavera P6, but on project object there is no method to get location. How we can get the location of the project? Best regards Michele Spinella

joniles commented 1 year ago

Hello! Unfortunately MPXJ doesn't support he location attribute currently, but this is something I should be able to add for the next release. I'll update this issue once I've added the functionality.

michelespinella commented 1 year ago

Great, thanks a lot. We are mapping a set of attributes, from rest API. If you want we share the mapping. Michele

joniles commented 1 year ago

Would you be able to attach (or send me via email) a sample XER file and a sample PMXML file containing locations, ideally with project, activities etc with assigned locations? This will be very helpful for my testing. Thanks!

michelespinella commented 1 year ago

I will check the xer we are using to send, but I have only xer and not pmxml. Thanks a lot

joniles commented 1 year ago

@michelespinella I had some time last night so I've implemented the necessary changes (https://github.com/joniles/mpxj/pull/480). I'll hold off merging until I've bee able to verify with a sample file.

michelespinella commented 1 year ago

I attach the xer file that we are using, let me know the file is ok. EC02016.zip

joniles commented 1 year ago

Many thanks for the sample data. I've confirmed the changes work, you'll be able to retrieve the location from the project after reading the XER file. The changes have been merged and will be in the next MPXJ release.