Data file id for all versions is same

Data file id for all versions is same

Rahul.Khande
Enthusiast Enthusiast
315 Views
1 Reply
Message 1 of 2

Data file id for all versions is same

Rahul.Khande
Enthusiast
Enthusiast

Hello All,

I wish to find id for all versions of given datafile but what I noticed is, for all versions id is same.

Here is my code snippet:

Ptr<DataFiles> dataFiles = app->activeDocument()->dataFile()->versions();
vector<Ptr<DataFile>> dataFilesArray = dataFiles->asArray();
for (int index = 0; index < dataFilesArray.size(); index++) {
Ptr<DataFile> dataFile = dataFilesArray[index];
string itemID = dataFile->id();
}

Any thoughts?

Thank you.

 

0 Likes
Accepted solutions (1)
316 Views
1 Reply
Reply (1)
Message 2 of 2

kandennti
Mentor
Mentor
Accepted solution
0 Likes