Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
Solved! Go to Solution.