I'm using win32com to access MS Project data from Python. Now I need to access the TimeScaleData of an assignment using code similar to the one shown in the accepted answer of this question.
Tasks_collection = ActiveProject.Tasks
for t in Tasks_collection:
for r in t.Assignments:
TSV_collection = r.TimeScaleData('06/01/2019','08/01/2019',\
pjAssignmentTimescaledWork,pjTimescaleDays)
for tsv in TSV_collection:
print(tsv.Value)
But I have no idea where or how pjAssignmentTimescaledWork and pjTimescaleDays are defined. I've already checked multiple questions regarding VBA, MS Project, win32com in Python, but none of them explain how to access the enumerations of the project model. I found out what pjAssignmentTimescaledWork actually was when I came across Microsoft's VBA documentation for Enumerations. But I haven't been able to find how to access those variables from Python, using win32com.
I also checked Microsoft Office's constants, generating them myself following the code I found here, but none of those constants are the ones shown in Microsoft's documentation.
Can someone offer me some insight regarding MS Project Enumerations in Python? Or more specifically, how to define pjAssignmentTimescaledWork and pjTimescaleDays, so that I can use the method TimeScaleData with its Type and TimeScaleUnit parameters (documented here)?