They should have a unique id (name + extension/type). If they haven't you have a problem inside your data management. Creo need a unique identifier and uses for this the filename.
If you have problems with doubled files you can generate a unique ID by getting the hash value from the file or something like that.
Yah there has to be unique ID for each file (part,asm,drawing). As if now I have not found any.
I have tried ProMdlIdGet but it's not persistent between sessions.
If I generate my own unique ID then I will need to add/attach it as a property to the part (or asm/drawing) and later I have to write a fucntion which will return the Part for given unique id.
Pro toolkit is in use for so long and I am sure people must have faced this situation.
I do not have Windchill and yes I have multiple files with same name (for example PRT0001.prt).
But yes FullFileName (Path + file name with ext) would be unique. Not sure if it's accepted solution or not.
So I am planning to add new parameter with value as unique GUID. Now looking for "how to add new Parameter". Please let me know if you know any function.
If not then I would have to use existing Parameter for this.