cancel
Showing results for 
Search instead for 
Did you mean: 

How to check whether master and non master present in ITEM ID: TCE

Creator
Creator

Hi I need to ckeck what are the entites present under item ID?

for example Master /Non Master and any other files loaded under it;

 

Appreciate the help!

FL

1 REPLY

Re: How to check whether master and non master present in ITEM ID: TCE

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

Please try below code:

 

to get master:

 theUfSession.Ugmgr.EncodePartFilename(ItemNo, itemRev, "master", "", out encodedName);

 

to get non master file, you should know the type of non master like "specification", "manifestation" etc:

 

 theUfSession.Ugmgr.EncodePartFilename(partNumber, partRevision, "manifestation", specFileName, out encodedName);

 

 theUfSession.Ugmgr.EncodePartFilename(partNumber, partRevision, "specification", specFileName, out encodedName);